diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-10-21 16:04:32 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-21 16:04:32 -0700 |
commit | afd6284a7fdbb479b5c99a87f64d7496f6fe8a27 (patch) | |
tree | 8023d7fb1a7be7457d8fcdeba68e7a0ddfa9f6cc /daemon.c | |
parent | 8963314c77af9a4eda5dcbdbab3d4001af83ad81 (diff) | |
parent | 3ac64370164fb80e92c3c9136210d3a49f1e01fa (diff) | |
download | git-afd6284a7fdbb479b5c99a87f64d7496f6fe8a27.tar.gz |
Merge branch 'ph/transport-with-gitfile'
* ph/transport-with-gitfile:
Fix is_gitfile() for files too small or larger than PATH_MAX to be a gitfile
Add test showing git-fetch groks gitfiles
Teach transport about the gitfile mechanism
Learn to handle gitfiles in enter_repo
enter_repo: do not modify input
Diffstat (limited to 'daemon.c')
-rw-r--r-- | daemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -108,11 +108,11 @@ static void NORETURN daemon_die(const char *err, va_list params) exit(1); } -static char *path_ok(char *directory) +static const char *path_ok(char *directory) { static char rpath[PATH_MAX]; static char interp_path[PATH_MAX]; - char *path; + const char *path; char *dir; dir = directory; |