change git show to | head -1

git show uses default system pager, which for people that have
funky pagers, goes sideways. Pipe this through head -1 to ensure
we only get the single change line we care about.

Change-Id: Iff22612b555bf58fe12101701cfe593f37e8f8de
This commit is contained in:
Sean Dague 2013-09-25 10:27:27 -04:00
parent 5a9609bed3
commit 45a21f0e54

View File

@ -556,7 +556,7 @@ function git_clone {
echo "Running in offline mode, clones already exist"
# print out the results so we know what change was used in the logs
cd $GIT_DEST
git show --oneline --quiet
git show --oneline | head -1
return
fi
@ -604,7 +604,7 @@ function git_clone {
# print out the results so we know what change was used in the logs
cd $GIT_DEST
git show --oneline --quiet
git show --oneline | head -1
}