Browse code

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

Sean Dague authored on 2013/09/25 23:27:27
Showing 1 changed files
... ...
@@ -556,7 +556,7 @@ function git_clone {
556 556
         echo "Running in offline mode, clones already exist"
557 557
         # print out the results so we know what change was used in the logs
558 558
         cd $GIT_DEST
559
-        git show --oneline --quiet
559
+        git show --oneline | head -1
560 560
         return
561 561
     fi
562 562
 
... ...
@@ -604,7 +604,7 @@ function git_clone {
604 604
 
605 605
     # print out the results so we know what change was used in the logs
606 606
     cd $GIT_DEST
607
-    git show --oneline --quiet
607
+    git show --oneline | head -1
608 608
 }
609 609
 
610 610