diff options
-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 |