summaryrefslogtreecommitdiffhomepage
path: root/scripts/common_build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/common_build.sh')
-rwxr-xr-xscripts/common_build.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/common_build.sh b/scripts/common_build.sh
index 6874e56f9..d4a6c4908 100755
--- a/scripts/common_build.sh
+++ b/scripts/common_build.sh
@@ -109,9 +109,8 @@ function collect_logs() {
}
function find_branch_name() {
- (git branch --show-current \
+ git branch --show-current \
|| git rev-parse HEAD \
|| bazel info workspace \
- | xargs basename) \
- | tr '/' '-'
+ | xargs basename
}