Skip to content

Commit

Permalink
Print git commit number
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertchen committed Aug 4, 2018
1 parent f304b64 commit 48cc5ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion duplicacy/duplicacy_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const (
)

var ScriptEnabled bool
var GitCommit = "unofficial"

func getRepositoryPreference(context *cli.Context, storageName string) (repository string,
preference *duplicacy.Preference) {
Expand Down Expand Up @@ -1992,7 +1993,7 @@ func main() {
app.Name = "duplicacy"
app.HelpName = "duplicacy"
app.Usage = "A new generation cloud backup tool based on lock-free deduplication"
app.Version = "2.1.1"
app.Version = "2.1.1" + " (" + GitCommit + ")"

// If the program is interrupted, call the RunAtError function.
c := make(chan os.Signal, 1)
Expand Down

0 comments on commit 48cc5ea

Please sign in to comment.