commit 8ce300f428c58a862e753b2901df38a8b498a7ab
parent 0d7c25b112c9efd102a9f09a4ae4c493efc3f88f
Author: Georges Dupéron <georges.duperon@gmail.com>
Date: Tue, 21 Mar 2017 20:01:34 +0100
Fixed checkout command
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/auto-push-master.sh b/auto-push-master.sh
@@ -39,7 +39,7 @@ else
commit_hash="$(git rev-parse --short HEAD)"
git log --oneline --decorate --graph -10
git fetch origin auto-push
- git checkout origin/auto-push
+ git checkout FETCH_HEAD
echo "$commit_hash" > commit_hash
git add commit_hash
git commit -m "Request to auto-push $commit_hash to master" --allow-empty