commands: teach 'git-lfs-ls-files(1)' to work before first commit
This commit is contained in:
parent
aced46dfce
commit
609cdd51aa
@ -26,9 +26,10 @@ func lsFilesCommand(cmd *cobra.Command, args []string) {
|
||||
} else {
|
||||
fullref, err := git.CurrentRef()
|
||||
if err != nil {
|
||||
Exit(err.Error())
|
||||
ref = git.RefBeforeFirstCommit
|
||||
} else {
|
||||
ref = fullref.Sha
|
||||
}
|
||||
ref = fullref.Sha
|
||||
}
|
||||
|
||||
showOidLen := 10
|
||||
|
Loading…
Reference in New Issue
Block a user