projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Print an error if cloning a http repo and NO_CURL is set
[git.git]
/
git-checkout.sh
diff --git
a/git-checkout.sh
b/git-checkout.sh
index
bd7f007
..
76e7f55
100755
(executable)
--- a/
git-checkout.sh
+++ b/
git-checkout.sh
@@
-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
#