aboutsummaryrefslogtreecommitdiff
path: root/stowpkg
diff options
context:
space:
mode:
Diffstat (limited to 'stowpkg')
-rwxr-xr-xstowpkg5
1 files changed, 5 insertions, 0 deletions
diff --git a/stowpkg b/stowpkg
index a0feecd..8ddc166 100755
--- a/stowpkg
+++ b/stowpkg
@@ -160,6 +160,11 @@ stowpkg_install () {
cd ${package}-${version}
+ if [ "$source_format" = "git" ]; then
+ git fetch --all
+ git checkout version
+ fi
+
# Build
if [ -e "$location/rules" ]; then
. $location/rules