You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The net result of this is there's no way to use hideRefs to hide a ref from only upload-pack or receive-pack.
Actual behavior
transfer.hiderefs and receive.hiderefs are both ignored; uploadpack.hiderefs acts the way transfer.hiderefs should.
Expected behavior
transfer.hiderefs, receive.hiderefs, and uploadpack.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 capital R while JGit looks at hiderefs with a lower-case r
The text was updated successfully, but these errors were encountered:
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
jgit/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransferConfig.java
Line 213 in a903ab5
uploadpack.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
The text was updated successfully, but these errors were encountered: