Skip to content

Instantly share code, notes, and snippets.

@ttm
Created September 28, 2015 23:44
Show Gist options
  • Save ttm/ed4cbc4f76311c7f0bf3 to your computer and use it in GitHub Desktop.
Save ttm/ed4cbc4f76311c7f0bf3 to your computer and use it in GitHub Desktop.
a=`git log -1 HEAD --pretty=format:%s`
foo=`git remote show origin | grep Fetch`
b=(`echo $foo | tr ',' '\n'`)
aa \#gitcommit ::: $a \#repo ::: ${b[2]}
@ttm
Copy link
Author

ttm commented Sep 28, 2015

eh meu hook para vincular o commit a um shout de aa.
Fumega se eu rodar depois do commit, mas dá erro
quando commito:
.git/hooks/post-commit: 5: .git/hooks/post-commit: Syntax error: "(" unexpected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment