Signed-off-by: Winter winter@winter.cafe
Monorepo for Tangled โ https://tangled.org
knotserver: allow downloading archives of refs with slashes in their names #441
merged
opened by
expand 1 commit
hide 1 commit
knotserver: allow downloading archives of refs with slashes in their names
Signed-off-by: Winter <winter@winter.cafe>
expand 1 commit
hide 1 commit
knotserver: allow downloading archives of refs with slashes in their names
This allows us to be more precise when downloading e.g. tags that have the
same name as branches (in which case Git defaults to the branch, not sure
what go-git does).
Signed-off-by: Winter <winter@winter.cafe>
Good call, done!
expand 1 commit
hide 1 commit
knotserver: allow downloading archives of refs with slashes in their names
This allows us to be more precise when downloading e.g. tags that have the
same name as branches (in which case Git defaults to the branch, not sure
what go-git does).
Signed-off-by: Winter <winter@winter.cafe>
for this logic that strips
refs/tags, we could alternatively userefname := plumbing.ReferenceName(ref)and callrefname.Short()? it should universally clean up the filename.im happy the present logic as well however.