Merge branch 'sm/show-superproject-while-conflicted' into maint
A corner-case bugfix. * sm/show-superproject-while-conflicted: rev-parse: --show-superproject-working-tree should work during a merge
This commit is contained in:
@ -1879,7 +1879,7 @@ const char *get_superproject_working_tree(void)
|
||||
* We're only interested in the name after the tab.
|
||||
*/
|
||||
super_sub = strchr(sb.buf, '\t') + 1;
|
||||
super_sub_len = sb.buf + sb.len - super_sub - 1;
|
||||
super_sub_len = strlen(super_sub);
|
||||
|
||||
if (super_sub_len > cwd_len ||
|
||||
strcmp(&cwd[cwd_len - super_sub_len], super_sub))
|
||||
|
||||
Reference in New Issue
Block a user