Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork938
Update instructions and test helpers for git-daemon#1684
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -177,12 +177,10 @@ def git_daemon_launched(base_path, ip, port): | ||
gd = None | ||
try: | ||
if is_win: | ||
# On MINGW-git, daemon exists in Git\mingw64\libexec\git-core\, | ||
# but if invoked as 'git daemon', it detaches from parent `git` cmd, | ||
# and then CANNOT DIE! | ||
# So, invoke it as a single command. | ||
daemon_cmd = [ | ||
"git-daemon", | ||
"--enable=receive-pack", | ||
@@ -217,12 +215,11 @@ def git_daemon_launched(base_path, ip, port): | ||
) | ||
if is_win: | ||
msg += textwrap.dedent( | ||
R""" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Using a capital There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. That's a super-interesting feature and I wasn't aware! I think there is great value in having (at least some) editors display the string in a more readable fashion, so yes, please keep making these improvements. | ||
On Windows, | ||
the `git-daemon.exe` must be in PATH. | ||
For MINGW, look into \Git\mingw64\libexec\git-core\, but problems with paths might appear.""" | ||
) | ||
log.warning(msg, ex, ip, port, base_path, base_path, exc_info=1) | ||
@@ -305,7 +302,7 @@ def remote_repo_creator(self): | ||
cw.set("url", remote_repo_url) | ||
with git_daemon_launched( | ||
Git.polish_url(base_daemon_path), | ||
"127.0.0.1", | ||
GIT_DAEMON_PORT, | ||
): | ||