Merge branch 'maint'
* maint: request-pull: really really disable pager
This commit is contained in:
commit
3eb1e8ee1f
@ -12,6 +12,9 @@ OPTIONS_SPEC=
|
|||||||
. git-sh-setup
|
. git-sh-setup
|
||||||
. git-parse-remote
|
. git-parse-remote
|
||||||
|
|
||||||
|
GIT_PAGER=
|
||||||
|
export GIT_PAGER
|
||||||
|
|
||||||
base=$1
|
base=$1
|
||||||
url=$2
|
url=$2
|
||||||
head=${3-HEAD}
|
head=${3-HEAD}
|
||||||
@ -34,7 +37,7 @@ branch=$(git ls-remote "$url" \
|
|||||||
}")
|
}")
|
||||||
if [ -z "$branch" ]; then
|
if [ -z "$branch" ]; then
|
||||||
echo "warn: No branch of $url is at:" >&2
|
echo "warn: No branch of $url is at:" >&2
|
||||||
git log --max-count=1 --pretty='format:warn: %h: %s' $headrev >&2
|
git log --max-count=1 --pretty='tformat:warn: %h: %s' $headrev >&2
|
||||||
echo "warn: Are you sure you pushed $head there?" >&2
|
echo "warn: Are you sure you pushed $head there?" >&2
|
||||||
echo >&2
|
echo >&2
|
||||||
echo >&2
|
echo >&2
|
||||||
@ -42,8 +45,6 @@ if [ -z "$branch" ]; then
|
|||||||
status=1
|
status=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GIT_PAGER=
|
|
||||||
export GIT_PAGER
|
|
||||||
echo "The following changes since commit $baserev:"
|
echo "The following changes since commit $baserev:"
|
||||||
git shortlog --max-count=1 $baserev | sed -e 's/^\(.\)/ \1/'
|
git shortlog --max-count=1 $baserev | sed -e 's/^\(.\)/ \1/'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user