Monorepo for Tangled โ€” https://tangled.org

knotserver: git: do not pass HEAD as a default arg to rev-list #229

merged
opened by oppi.li targeting master from push-ovrqrxnpvroz

when calling rev-list, HEAD was passed as a default argument:

git rev-list HEAD --count

but HEAD is only populated when we perform git.Open; it is zeroed out when we perform git.PlainOpen:

git rev-list 00000... --count

this causes rev-list to exit with an error, when used in repos that are git.PlainOpen'd.

Signed-off-by: oppiliappan me@oppi.li

0
by oppi.li 0 comments
expand 1 commit
knotserver: git: do not pass HEAD as a default arg to rev-list
pull request successfully merged
sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.pull/3lr433f6k6222