From a498332c966e5610f45815f2231ffa367369510b Mon Sep 17 00:00:00 2001 From: spacewander Date: Sat, 30 May 2015 12:31:23 +0800 Subject: [PATCH] update installation in `git-extras update` --- bin/git-extras | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)"