aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorCache Saravento <cache@sarava.org>2015-08-07 14:20:33 -0300
committerCache Saravento <cache@sarava.org>2015-08-07 14:20:33 -0300
commit3f57eca4e874bafd66a397912499d60f1d32cd2d (patch)
tree85dfdcd50d2af60cd648100ddb23d7f65f9d98a8 /bin
parent0b7e67e3ce0179ddff0c1a08fc25f86b54900755 (diff)
downloadcache-3f57eca4e874bafd66a397912499d60f1d32cd2d.tar.gz
cache-3f57eca4e874bafd66a397912499d60f1d32cd2d.tar.bz2
Support for common repos at post-update
Diffstat (limited to 'bin')
-rwxr-xr-xbin/post-update7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/post-update b/bin/post-update
index 3098dab..a45c29a 100755
--- a/bin/post-update
+++ b/bin/post-update
@@ -2,7 +2,12 @@
cd ..
unset GIT_DIR
-git annex sync
+
+if [ -d ".git/annex" ]; then
+ git annex sync
+else
+ git checkout .
+fi
cd -
exec git update-server-info