Commit a39f18ac by Carlos Martín Nieto Committed by GitHub

Merge pull request #3998 from pks-t/pks/repo-discovery

Repository discovery starting from files
parents df045cef 0f316096
...@@ -410,7 +410,7 @@ static int find_repo( ...@@ -410,7 +410,7 @@ static int find_repo(
break; break;
} }
} }
else if (S_ISREG(st.st_mode)) { else if (S_ISREG(st.st_mode) && git__suffixcmp(path.ptr, "/" DOT_GIT) == 0) {
error = read_gitfile(&repo_link, path.ptr); error = read_gitfile(&repo_link, path.ptr);
if (error < 0) if (error < 0)
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment