projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix git-status when HEAD is invalid.
[git.git]
/
git-request-pull-script
diff --git
a/git-request-pull-script
b/git-request-pull-script
index
9190815
..
ae6cd27
100755
(executable)
--- a/
git-request-pull-script
+++ b/
git-request-pull-script
@@
-19,8
+19,8
@@
head=${3-HEAD}
[ "$revision" ] || usage
[ "$url" ] || usage
[ "$revision" ] || usage
[ "$url" ] || usage
-baserev=`git-rev-parse --verify
$revision
^0` &&
-headrev=`git-rev-parse --verify
$head
^0` || exit
+baserev=`git-rev-parse --verify
"$revision"
^0` &&
+headrev=`git-rev-parse --verify
"$head"
^0` || exit
echo "The following changes since commit $baserev:"
git log --max-count=1 --pretty=short "$baserev" |
echo "The following changes since commit $baserev:"
git log --max-count=1 --pretty=short "$baserev" |