Merge pull request #592 from spacewander/fix_integrity

Fix integrity for git-reauthor
This commit is contained in:
hemanth.hm 2016-11-12 20:45:45 -08:00 committed by GitHub
commit ec64fe6500
3 changed files with 6 additions and 1 deletions

4
.travis.yml Normal file
View file

@ -0,0 +1,4 @@
os:
- linux
- osx
script: ./check_integrity.sh $(find bin | cut -b 5- | xargs)

View file

@ -15,7 +15,7 @@ check_bash_script() {
|| err "Run 'chmod +x bin/$cmd' to make it executable"
shebang=$(head -n1 "bin/$cmd")
test "$shebang" == "#!/usr/bin/env bash" \
[[ "$shebang" =~ \#![[:space:]]*/usr/bin/env[[:space:]]+bash ]] \
|| err "Start git-$1 with '#!/usr/bin/env bash'"
}

View file

@ -391,6 +391,7 @@ zstyle ':completion:*:*:git:*' user-commands \
pr:'checks out a pull request locally' \
psykorebase:'rebase a branch with a merge commit' \
pull-request:'create pull request to GitHub project' \
reauthor:'replace the author and/or committer identities in commits and tags' \
rebase-patch:'rebases a patch' \
refactor:'create refactor branch' \
release:'commit, tag and push changes to the repository' \