You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
373 B
10 lines
373 B
#!/bin/sh
|
|
|
|
branch=`git symbolic-ref --short -q HEAD`
|
|
commit=`git log -1 --oneline $branch`
|
|
|
|
branchencode=`echo -n "$branch" | xxd -ps | tr -d '\n' | sed -r 's/(..)/%\1/g'`
|
|
commitencode=`echo -n "$commit" | xxd -ps | tr -d '\n' | sed -r 's/(..)/%\1/g'`
|
|
curl "http://127.0.0.1:37188/commit?branch=${branchencode}&commit=${commitencode}"
|
|
echo 分支[$branch][$commit]
|
|
exit 0
|