]> git.droids-corp.org - git-central.git/commitdiff
Delay to avoid ticket changes failing.
authorStephen Haberman <stephen@exigencecorp.com>
Fri, 17 Oct 2008 03:50:20 +0000 (22:50 -0500)
committerStephen Haberman <stephen@exigencecorp.com>
Fri, 17 Oct 2008 03:50:20 +0000 (22:50 -0500)
server/post-receive-trac

index 8a5ec96433c5d671bc8205279dd21cb600b7aa86..154619708ea93d38dbcc412c645ce29ab75ba174 100644 (file)
@@ -25,6 +25,9 @@ while read oldrev newrev refname ; do
                author="$(git rev-list -n 1 $commit --pretty=format:'%cn <%ce>' | grep -v $commit)"
                message="$(git rev-list -n 1 $commit --pretty=format:'%s%n%b' | grep -v $commit)"
                "$PYTHON" "$POST_RECEIVE_TRAC" "$TRAC_ENV" "$short_refname" "$describe" "$describe_tags" "$commit" "$author" "$message"
+               # Trac will crap out if we submit ticket refs too quickly
+               # http://trac.edgewall.org/ticket/6466
+               sleep 1
        done
 done