diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2017-12-04 19:52:41 +0200 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2017-12-05 23:53:19 -0800 |
commit | 42a4a1fa3705f1529ea6faca810f96e7813c2233 (patch) | |
tree | 83059ab382190dd1976f4b1320ec2e8d9164512b | |
parent | f1a45b0c9d20a754b8f0d51c7a264d7dbfeac4c4 (diff) | |
download | mpv-build-42a4a1fa3705f1529ea6faca810f96e7813c2233.tar.bz2 mpv-build-42a4a1fa3705f1529ea6faca810f96e7813c2233.tar.xz |
don't checkout detached
Commit a0f90ad changed from git checkout --detached $rev to
git checkout $rev^0 to support old git versions without detach,
however, mpv-build use cases don't require to detach in the first place.
Just use normal checkout
-rwxr-xr-x | update | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -27,7 +27,7 @@ do_gitmaster() set -ex ( cd "$1" - git checkout origin/master^0 + git checkout origin/master git remote prune origin ) } @@ -47,7 +47,7 @@ do_releasetag() ( cd "$1" version=`git tag | grep -v rc | grep -v dev | versort_with_prefix "$2" | tail -n 1` - git checkout refs/tags/"$version"^0 + git checkout refs/tags/"$version" ) } @@ -55,7 +55,7 @@ do_fixedref() { ( cd "$1" - git checkout "$2"^0 + git checkout "$2" ) } |