diff options
author | Cache Saravento <cache@sarava.org> | 2015-08-07 14:20:33 -0300 |
---|---|---|
committer | Cache Saravento <cache@sarava.org> | 2015-08-07 14:20:33 -0300 |
commit | 3f57eca4e874bafd66a397912499d60f1d32cd2d (patch) | |
tree | 85dfdcd50d2af60cd648100ddb23d7f65f9d98a8 /bin | |
parent | 0b7e67e3ce0179ddff0c1a08fc25f86b54900755 (diff) | |
download | cache-3f57eca4e874bafd66a397912499d60f1d32cd2d.tar.gz cache-3f57eca4e874bafd66a397912499d60f1d32cd2d.tar.bz2 |
Support for common repos at post-update
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/post-update | 7 |
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 |