Skip to content

Gracefully fail githeadinfo when not in a git repo / no commits #16

@cdlm

Description

@cdlm
  • gitinfo2.sh should check if it's being run within a git repo
  • it should take the output file as parameter and not write it unless it's able to (redirecting stdout generates an empty file on failure)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions