summaryrefslogtreecommitdiffstats
path: root/subcmds/version.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2020-03-24 02:43:46 -0400
committerMike Frysinger <vapier@google.com>2020-03-25 04:56:16 +0000
commitcdb344c0e7a92e478d738e29a995726c98ae1ffb (patch)
tree4e792f93edd1c0ce025cece6b7689664c18b78b2 /subcmds/version.py
parente257d5666568a9621b7dfece313c705e41e17070 (diff)
downloadgit-repo-cdb344c0e7a92e478d738e29a995726c98ae1ffb.tar.gz
launcher: avoid crash when executing out of checkout
When developing repo itself, it helps to run repo directly out of it and to run bisection tools. The current _SetDefaultsTo logic fails in that situation though as it wants a branch, but the source isn't checked out to one. Now that we support tracking commits via the --repo-rev setting, fall back to using the current HEAD commit. Change-Id: I37d79fd9f7bea87d212421ebed6c8267ec95145f Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/260192 Tested-by: Mike Frysinger <vapier@google.com> Reviewed-by: Jonathan Nieder <jrn@google.com>
Diffstat (limited to 'subcmds/version.py')
0 files changed, 0 insertions, 0 deletions