8000 travisify.sh: strip .git suffix from repo slug · hadim/scijava-scripts@03621c8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 03621c8

Browse files
committed
travisify.sh: strip .git suffix from repo slug
Including the .git suffix when cloning is optional. Either way, we don't want it present in the repo slug.
1 parent 199784f commit 03621c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

travisify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ process() {
6666
cd "$1"
6767

6868
# -- Git sanity checks --
69-
repoSlug=$(git remote -v | grep origin | head -n1 | sed 's/.*github.com.\([^ ]*\) .*/\1/')
69+
repoSlug=$(git remote -v | grep origin | head -n1 | sed 's/.*github.com.\([^ ]*\) .*/\1/' | sed 's/\.git$//')
7070
test "$repoSlug" && info "Repository = $repoSlug" || die 'Could not determine GitHub repository slug'
7171
git fetch >/dev/null
7272
git diff-index --quiet HEAD -- || die "Dirty working copy"

0 commit comments

Comments
 (0)
0