• Yuke Liao's avatar
    Fix git-crrev-parse on Mac. · 383ace4b
    Yuke Liao authored
    Previously, running git crrev-parse {crrev_number} on Mac doesn't 
    produce any meaningful output, and the reason is that parameter 
    substitutions resulted in extra back slashes ('\'):
    
    ref="refs/heads/master"
    remote_ref="${ref/refs\/heads/refs\/remotes\/origin}"
    
    expected: remote_ref="refs/remotes/origin/master"
    actual: remote_ref="refs\/remotes\/origin/master"
    
    This CL fixes the issue by removing the extra back slashes.
    
    Bug:
    Change-Id: I1ee1b4702f09c96fb65518ee1465d0de927e95cc
    Reviewed-on: https://chromium-review.googlesource.com/572052Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
    Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
    383ace4b
git-crrev-parse 1.69 KB