Skip to content

Commit e08f110

Browse files
committed
Use pom.xml for repoSlug
1 parent 03621c8 commit e08f110

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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/' | sed 's/\.git$//')
69+
repoSlug=$(grep '<connection>' pom.xml 2>/dev/null | sed 's/[^>]*>//' | sed 's/<.*//' | cut -d'/' -f4,5)
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)