diff options
author | zfo | 2016-02-09 23:34:26 +0200 |
---|---|---|
committer | zfo | 2016-02-09 23:34:26 +0200 |
commit | 532055f467c945bc5cba8b1df73528687a093172 (patch) | |
tree | 30a5c165ed927e2196dca3cd2fa14256cad99272 | |
parent | 639393114c23ce1474285be9daa581758b80bd5a (diff) | |
download | aur-532055f467c945bc5cba8b1df73528687a093172.tar.gz |
fix: quiet git clone + better git version
-rw-r--r-- | PKGBUILD | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -26,7 +26,7 @@ update_git(){ cd "$_gitname" && git pull origin > /dev/null msg "The local files are updated." else - git -q clone --depth 1 "$_gitroot" "$_gitname" + git clone -q --depth 1 "$_gitroot" "$_gitname" fi msg "GIT checkout done or server timeout" @@ -35,7 +35,7 @@ update_git(){ pkgver() { update_git cd "${srcdir}/${_gitname}" - printf "r.%s" "$(git rev-parse --short HEAD)" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { |