Commit c626429f authored by Robin Eschbach's avatar Robin Eschbach
Browse files

[FIX #464] get branchname in detached HEAD

parent 111ddf38
......@@ -27,7 +27,7 @@
UPLOAD_REGEX="\\{\"url\": \"([^\"]*)\"\\}"
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
GIT_BRANCH=$(git branch --remote --verbose --no-abbrev --contains | sed -rne 's/^[^\/]*\/([^\ ]+).*$/\1/p')
GIT_COMMIT=$(git rev-parse --short HEAD)
DATE=$(date '+%Y-%m-%d_%H-%M')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment