Skip to content

Commit

Permalink
Print useful branch/version if git fails
Browse files Browse the repository at this point in the history
  • Loading branch information
pavpanchekha committed May 19, 2016
1 parent 0b20f6f commit ecfce49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formats/datafile.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
(define (git-command #:default [default ""] gitcmd . args)
(if (directory-exists? ".git")
(let ([cmd (format "git ~a ~a" gitcmd (string-join args " "))])
(string-trim (with-output-to-string (λ () (system cmd)))))
(or (string-trim (with-output-to-string (λ () (system cmd)))) default))
default))

(struct table-row
Expand Down

0 comments on commit ecfce49

Please sign in to comment.