Print an error if cloning a http repo and NO_CURL is set
[git.git] / git-checkout.sh
index bd7f007..76e7f55 100755 (executable)
@@ -164,6 +164,12 @@ else
        esac
        exit 0
     )
+    saved_err=$?
+    if test "$saved_err" = 0
+    then
+       test "$new" = "$old" || git diff-index --name-status "$new"
+    fi
+    (exit $saved_err)
 fi
 
 #