-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not emit an error when building outside of git
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
# The following command would normally print an error message if not run in a | ||
# git repository (e.g. when run in an extracted release archive, which doesn't | ||
# include git history). | ||
# J4dd's build system is configured to handle git failures well. If git isn't | ||
# available or if we're not in a git repository, version.txt is used to | ||
# determine the version. | ||
# Because this behavior is fully supported, printing an error message would only | ||
# confuse the user, because the error message implies that something is wrong. | ||
exec git describe --dirty --broken 2> /dev/null |