Open joelthompson opened 4 days ago
master
Linux/Unix
According to the Git documentation, there are three ways hideRefs can be set:
hideRefs
transfer.hideRefs
receive-pack
upload-pack
uploadpack.hideRefs
receive.hideRefs
JGit only looks at uploadpack.hiderefs and ignores transfer.hiderefs and receive.hiderefs https://github.com/eclipse-jgit/jgit/blob/a903ab5fa3defdef06b4eba316ef2436533416fb/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransferConfig.java#L213 Further, when uploadpack.hiderefs is set; JGit acts as if transfer.hiderefs had been set instead and hides the listed refs from both receive-pack and upload-pack.
uploadpack.hiderefs
transfer.hiderefs
receive.hiderefs
The net result of this is there's no way to use hideRefs to hide a ref from only upload-pack or receive-pack.
transfer.hiderefs and receive.hiderefs are both ignored; uploadpack.hiderefs acts the way transfer.hiderefs should.
transfer.hiderefs, receive.hiderefs, and uploadpack.hiderefs to behave as describe in the Git documentation.
No response
Not sure it's material, but the Git docs specify hideRefs with a capital R while JGit looks at hiderefs with a lower-case r
R
hiderefs
r
git config keys are case insensitive
Version
master
Operating System
Linux/Unix
Bug description
According to the Git documentation, there are three ways
hideRefs
can be set:transfer.hideRefs
: This hides the refs from bothreceive-pack
andupload-pack
commandsuploadpack.hideRefs
: This hides the ref from onlyupload-pack
but leaves it visible forreceive-pack
commandsreceive.hideRefs
: The opposite of the above: hide the ref only fromreceive-pack
commands but leave it visible forupload-pack
commands.JGit only looks at
uploadpack.hiderefs
and ignorestransfer.hiderefs
andreceive.hiderefs
https://github.com/eclipse-jgit/jgit/blob/a903ab5fa3defdef06b4eba316ef2436533416fb/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransferConfig.java#L213 Further, whenuploadpack.hiderefs
is set; JGit acts as iftransfer.hiderefs
had been set instead and hides the listed refs from bothreceive-pack
andupload-pack
.The net result of this is there's no way to use
hideRefs
to hide a ref from onlyupload-pack
orreceive-pack
.Actual behavior
transfer.hiderefs
andreceive.hiderefs
are both ignored;uploadpack.hiderefs
acts the waytransfer.hiderefs
should.Expected behavior
transfer.hiderefs
,receive.hiderefs
, anduploadpack.hiderefs
to behave as describe in the Git documentation.Relevant log output
No response
Other information
Not sure it's material, but the Git docs specify
hideRefs
with a capitalR
while JGit looks athiderefs
with a lower-caser