Since at least 5751f49010e (Move remote parsing into a library file out of builtin-push., 2007-05-12), we strongly prefer remotes and upstream branches to be specified in the config rather than .git/remotes/ and .git/branches/. For some time, we still retained compatibility with Cogito (which was an excellent project demonstrating many useful features that eventually were integrated into Git proper) by creating the branches/ subdirectory upon git-init. In preparation for removing support for this ancient compatibility that should no longer be necessary, let's warn everybody who is still using that feature (if there is anybody left, that is). Signed-off-by: Johannes Schindelin <johannes.schindelin@xxxxxx> --- remote.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/remote.c b/remote.c index 801137c72eb..04ab2230337 100644 --- a/remote.c +++ b/remote.c @@ -290,6 +290,9 @@ static void read_branches_file(struct remote *remote) return; } + warning(_("the branch '%s' uses the long-deprecated '%s' file"), + remote->name, git_path("branches/%s", remote->name)); + remote->configured_in_repo = 1; remote->origin = REMOTE_BRANCHES; -- 2.12.2.windows.2.800.gede8f145e06