Commits
- Commit:
1eb3899277955a87d80eef900b6ea458ff73bd6c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
significantly reduce the amount of code linked into gitwrapper
By moving got_serve_parse_command() from lib/serve.c into lib/dial.c
as got_dial_parse_command(), we can significantly reduce the amount
of symbols gitwrapper depends on indirectly.
As a downside, gotsh now needs to link to dial.c. But it only uses the
same parsing routine, and any other routines in dial.c would likely
cause pledge violations in gotsh if used.
No functional change.
- Commit:
6cc8a118a74d4c7a3f037ad0f755a3aadf5288d6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
dial: fix quoting for git-shell
Escape the path to the repository when connecting via SSH. This is needed
if the path contains spaces, quotes or other "funny" characters, but also
by git-shell which requires the argument to be surrounded by single-quote
characters.
Issue with git-shell reported by James Cook, fix based on an initial diff
by stsp@.
ok stsp@
- Commit:
9ea55f08a2fdb3e7018231c9fe4014c758a0b69a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add missing freaddrinfo
also spotted by valgrind. ok stsp@
- Commit:
58e31a80da4f4a9e10eaea148672190f35107a47
- From:
- Omar Polo <op@omarpolo.com>
- Date:
build with -Wwrite-strings
Throwing this into the mix for a while, we can always get rid of it
again if it becomes annoying. No objections from stsp@
- Commit:
336075a42a5ae0fa322db734c481d21998e82bb8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
build with -Wmissing-prototypes
ok stsp@
- Commit:
805253d5155091691f7cf36e54134cc87b2ea91a
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
fix level of indirection
ok stsp
- Commit:
3a12860c3cbeae377b90f5526d0b75ccdb01bfc4
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make the URI parser tolerate trailing slashes at the end of the input URI
ok naddy
- Commit:
c10270f60d5b5c805167e48e6a4fe265bdbecc69
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
assert against accidentally overflowing argv[] in got_dial_ssh()
ok stsp
- Commit:
5e5da8c4bcc83f7737a115b8da52fc3935fe3a6b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rename got_fetch_parse_uri() to got_dial_parse_uri()
This function is now being used by both 'got fetch' and 'got send' so
its former name was misleading.
- Commit:
d65a88a2f0db40d2c2ac34ee34e8aff8ac629d52
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move duplicated dial_ssh() and dial_git() functions into a common file
These functions are used by 'got send' and 'got fetch' in order to
open network connections to a server. Move them into new file lib/dial.c
and declare relevant functions in got_dial.h and lib/got_lib_dial.h.
No functional change.