summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2017-11-10 13:21:05 +0100
committerYvan Roux <yvan.roux@linaro.org>2017-11-10 13:21:05 +0100
commit597c6367e695263fc5b9998996355ef7af512888 (patch)
tree81e754b707bd0fec66777a7c0ddbe0613c53f300
parenta1e732b98de17e164956d9198bab6a7ff8757726 (diff)
downloadbackflip-597c6367e695263fc5b9998996355ef7af512888.tar.gz
Search revisions on origin/master branch.
Change-Id: I1e0976a1158968d31b00cded242929a7b2411e5d
-rwxr-xr-xbackflip6
1 files changed, 3 insertions, 3 deletions
diff --git a/backflip b/backflip
index 87a6e53..02ed430 100755
--- a/backflip
+++ b/backflip
@@ -195,9 +195,9 @@ fi
# ==============================================================================
for REV in "$@"
do
- SHA1=`git log --format=format:"%H" --grep=trunk@${REV} master`
+ SHA1=`git log --format=format:"%H" --grep=trunk@${REV} origin/master`
if [ -z "$SHA1" ]; then
- die "${red}Revision ${REV} is missing in master history${NC}"
+ die "${red}Revision ${REV} is missing in origin/master history${NC}"
fi
done
@@ -232,7 +232,7 @@ print_info "example: ${bold}backflip -r master${NC}"
# ==============================================================================
print_step "Finding SHA1 for SVN revision $REV"
# ==============================================================================
-SHA1=`git log --format=format:"%H" --grep=trunk@${REV} master`
+SHA1=`git log --format=format:"%H" --grep=trunk@${REV} origin/master`
print_info "${NC}SVN rev ${bold}${REV}${NC} SHA1: ${bold}${SHA1}${NC}"
if $INTERACTIVE; then
ask "${bold}View the commit [N/y] ?" user_view