summaryrefslogtreecommitdiffstats
path: root/tests/test_subcmds_sync.py
diff options
context:
space:
mode:
authorGavin Mak <gavinmak@google.com>2025-07-25 18:21:50 +0000
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2025-07-25 14:30:07 -0700
commit7f7d70efe4c490a4df8597e04aca7d7e198b8e9b (patch)
treee6c9ee51a091eae145a8e39c3dd2532db30eb307 /tests/test_subcmds_sync.py
parent720bd1e96b4e9c36d035987578fc01a9939d753f (diff)
downloadgit-repo-7f7d70efe4c490a4df8597e04aca7d7e198b8e9b.tar.gz
project: Fix GetHead to handle detached HEADs
The switch to git rev-parse caused GetHead() to return the literal string 'HEAD' when in a detached state. This broke repo prune, which expects a commit SHA. Bug: 434077990 Change-Id: I80b7d5965749096b59e854f61e913aa74c857b99 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/494401 Reviewed-by: Scott Lee <ddoman@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com> Tested-by: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'tests/test_subcmds_sync.py')
0 files changed, 0 insertions, 0 deletions