read_gitfile_gently: clarify return value ownership.
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Han-Wen Nienhuys committed
Sep 26, 2017 at 13:21 UTC
ea1d87560c5d66396d1785a208783cbf7a1651c2
1 file changed
+2
-1
setup.c
+2
-1
@@ -541,7 +541,8 @@ void read_gitfile_error_die(int error_code, const char *path, const char *dir)
541
542
/*
543
* Try to read the location of the git directory from the .git file,
544
- * return path to git directory if found.
544
+ * return path to git directory if found. The return value comes from
545
+ * a shared buffer.
546
*
547
* On failure, if return_error_code is not NULL, return_error_code
548
* will be set to an error code and NULL will be returned. If