]> gitweb.fluxo.info Git - utils-git.git/commitdiff
Commit: avoid ssh lockfile issues by sleeping a bit
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 13 Nov 2018 23:10:31 +0000 (21:10 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 13 Nov 2018 23:10:31 +0000 (21:10 -0200)
commit

diff --git a/commit b/commit
index 0bf2b18696679e580b59ff3fb00cf6913a4fcb97..ed72995bf88a0d5165f099969a1e25c12e2d4867 100755 (executable)
--- a/commit
+++ b/commit
@@ -159,6 +159,10 @@ if [ ! -z "$1" ]; then
     git_user
     git_commit $*
     git_push
+
+    # Avoid ssh lockfile issues by sleeping a bit
+    sleep 0.5
+
     $GIT fetch --all
   fi
 fi