commands: teach 'git-lfs-ls-files(1)' to work before first commit

This commit is contained in:
Taylor Blau 2017-12-19 14:13:28 -05:00
parent aced46dfce
commit 609cdd51aa

@ -26,9 +26,10 @@ func lsFilesCommand(cmd *cobra.Command, args []string) {
} else { } else {
fullref, err := git.CurrentRef() fullref, err := git.CurrentRef()
if err != nil { if err != nil {
Exit(err.Error()) ref = git.RefBeforeFirstCommit
} else {
ref = fullref.Sha
} }
ref = fullref.Sha
} }
showOidLen := 10 showOidLen := 10