Skip to content

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

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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