-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possible bug: bare git without packed-refs file wouldn't show up in the scan result #50
Comments
Nice. I'm now testing --- a/server_side/rgitsss
+++ b/server_side/rgitsss
@@ -111,6 +111,8 @@ rgitsss_init() {
COMMAND="${COMMAND}git init --bare --initial-branch=main ${BASE}"
su ${ACCOUNT} --shell=/usr/bin/bash \
--command="${COMMAND}"
+ su ${ACCOUNT} --shell=/usr/bin/bash \
+ --command="cd ${DIR}/${BASE} && git pack-refs --all"
}
rgitsss_describe() { |
Interesting @darkclip. I wonder if there's any other identifying file in the repo that can be used instead. Maybe |
The For "allow to be cloned" has script |
@w4 I think it doesn't matter that much what kind of identifier to be used, as long as you give it a proper documentation. |
if you init a bare repo in the scan path, it won't create "packed-refs" file by default, in this case, the program wouldn't recognize it as a repo. you have to use "git pack-refs --all" command to create the file for the repo to be recognized by rgit.
The text was updated successfully, but these errors were encountered: