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 {
|
} 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
|
||||||
|
Loading…
Reference in New Issue
Block a user