diff --git a/bin/git-extras b/bin/git-extras index c9b2bfe..cfbd945 100755 --- a/bin/git-extras +++ b/bin/git-extras @@ -9,8 +9,9 @@ update() { cd /tmp \ && rm -fr ./git-extras \ - && git clone --depth 1 https://github.com/tj/git-extras.git \ + && git clone https://github.com/tj/git-extras.git \ && cd git-extras \ + && git checkout $(git describe --tags $(git rev-list --tags --max-count=1))\ && PREFIX="$prefix" make install \ && cd "$orig" \ && echo "... updated git-extras $VERSION -> $(git extras --version)"