Skip to content

Support pr status in a repository that doesn't have any commits #682

@mislav

Description

@mislav

Created a new repo, reverted the initial commit, added a README on GitHub.com and created a PR, but every step along the way still results in this for gh pr status:

➜  Q1 git:(master) gh pr status
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
git: exit status 128

Originally posted by @tierninho in #282 (comment)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority-3Affects a small number of users or is largely cosmetic

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions