Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,7 @@ public void submoduleClean(boolean recursive) throws GitException, InterruptedEx
*/
@Override
public @CheckForNull String getSubmoduleUrl(String name) throws GitException, InterruptedException {
String result = launchCommand("config", "--get", "submodule." + name + ".url");
String result = launchCommand("config", "-f", ".gitmodules", "--get", "submodule." + name + ".url");
return StringUtils.trim(firstLine(result));
}

Expand All @@ -1641,7 +1641,7 @@ public void submoduleClean(boolean recursive) throws GitException, InterruptedEx
*/
@Override
public void setSubmoduleUrl(String name, String url) throws GitException, InterruptedException {
launchCommand("config", "submodule." + name + ".url", url);
launchCommand("config", "-f", ".gitmodules", "submodule." + name + ".url", url);
}

/**
Expand Down
Loading