Skip to content

Unfriendly errors can arise when creating initial entity version #272

@jonc125

Description

@jonc125

See https://rollbar.com/jonc125/Web-Lab/items/86 - user sees error

GitCommandError: Cmd('git') failed due to: exit code(128) cmdline: git reset --hard HEAD~ --
stderr: 'fatal: Failed to resolve 'HEAD~' as a valid revision.'
On page https://scrambler.cs.ox.ac.uk/entities/models/442/versions/new

Probably because a git error happened while adding or removing a file, and the hard_reset then fails because no commit yet exists. Not sure what exactly the user did to cause this.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions