From c279cbc3733206dfd3de3a9cdfb5946d3b52fdf8 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 22 Jan 2010 02:45:23 +0100 Subject: [PATCH] taskd/clone.sh: check for darcs-fast-export exit code --- taskd/clone.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/taskd/clone.sh b/taskd/clone.sh index c83ee0d..303a6b7 100755 --- a/taskd/clone.sh +++ b/taskd/clone.sh @@ -36,6 +36,9 @@ case "$url" in httpurl="${url/darcs:\/\//http://}" "$cfg_basedir"/bin/darcs-fast-export --export-marks=$(pwd)/dfe-marks "$httpurl" | \ git fast-import --export-marks=$(pwd)/gfi-marks + # This is here because by default only the exit code of + # git fast-import is checked + [ $PIPESTATUS[0] = 0 -a $PIPESTATUS[1] = 0 ] ;; *) git remote rm origin >/dev/null 2>&1 || : -- 2.11.4.GIT