Git Repositories

Fix: Ensure sshwrapper is executable
authorCyrille Pontvieux <jrd@enialis.net>
Thu, 18 Dec 2014 10:44:46 +0000 (11:44 +0100)
committerCyrille Pontvieux <jrd@enialis.net>
Thu, 18 Dec 2014 10:44:46 +0000 (11:44 +0100)
homegit/gitrepo.sh

index 69dcde3..de473a2 100755 (executable)
@@ -471,8 +471,8 @@ exec ssh \
   -i $(dirname "$0")/id_rsa \
   "$@"
 EOF
-    chmod +x "$NAME".git/sshwrapper
   fi
+  chmod +x "$NAME".git/sshwrapper
   echo 'GIT_SSH=$(readlink -f $(dirname "$0")/../../.sshwrapper) git push --quiet'" $HOST &" > "$NAME".git/hooks/.post-update.d/$HOST
   chmod +x "$NAME".git/hooks/.post-update.d/$HOST
 }