Dirk Mueller
483dbc7bc8
* Revert the "git patch-id" change that went into 2.46.1, as it seems to have got a regression reported (I haven't verified, but it is better to keep a known breakage than adding an unintended regression). * In a few corner cases "git diff --exit-code" failed to report "changes" (e.g., renamed without any content change), which has been corrected. * The interpret-trailers command failed to recognise the end of the message when the commit log ends in an incomplete line. OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/git?expand=0&rev=658
21 lines
390 B
Diff
21 lines
390 B
Diff
Index: b/read-cache.c
|
|
===================================================================
|
|
--- a/read-cache.c
|
|
+++ b/read-cache.c
|
|
@@ -1158,10 +1158,13 @@ static int has_dir_name(struct index_sta
|
|
size_t len;
|
|
|
|
for (;;) {
|
|
- if (*--slash == '/')
|
|
- break;
|
|
+ slash--;
|
|
+
|
|
if (slash <= ce->name)
|
|
return retval;
|
|
+
|
|
+ if (*slash == '/')
|
|
+ break;
|
|
}
|
|
len = slash - name;
|
|
|