зеркало из https://github.com/microsoft/git.git
Merge branch 'hv/submodule-update-nuke-submodules'
"git add" allows adding a regular file to the path where a submodule used to exist, but "git update-index" does not allow an equivalent operation to Porcelain writers.
This commit is contained in:
Коммит
72fd7d82d7
|
@ -211,12 +211,6 @@ static int process_path(const char *path)
|
||||||
if (S_ISDIR(st.st_mode))
|
if (S_ISDIR(st.st_mode))
|
||||||
return process_directory(path, len, &st);
|
return process_directory(path, len, &st);
|
||||||
|
|
||||||
/*
|
|
||||||
* Process a regular file
|
|
||||||
*/
|
|
||||||
if (ce && S_ISGITLINK(ce->ce_mode))
|
|
||||||
return error("%s is already a gitlink, not replacing", path);
|
|
||||||
|
|
||||||
return add_one_path(ce, path, len, &st);
|
return add_one_path(ce, path, len, &st);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче