Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion gbp/scripts/pq.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,8 @@ def main(argv):
except GitRepositoryError:
# Not being on any branch is OK with --ignore-branch
if options.ignore_branch:
current = repo.get_commits(num=1,
current = repo.get_commits(
num=1,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "branch name" is o.k. but did you verify e.g. "gbp switch" works with this? It would be good to have a test in tests/component/deb/test_pq.py that makes sure we don't break this behavior. Most of the functions called assume it's a branch we're working on.

options=["--pretty=format:%h"] # Force abbreviated commit hash
)[0]
else:
Expand Down