diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2018-05-22 16:13:47 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2018-05-23 08:47:08 +0200 |
| commit | a7168b47ee494c52ffe850784be9ad996f80441a (patch) | |
| tree | 290ea63c787104e9bdc36eaf0d0ef0316f6e2abc /src/submodule.c | |
| parent | 58ff913a13b840f1f6ee35e71e9d1de3470904ad (diff) | |
| download | libgit2-a7168b47ee494c52ffe850784be9ad996f80441a.tar.gz | |
path: reject .gitmodules as a symlink
Any part of the library which asks the question can pass in the mode to have it
checked against `.gitmodules` being a symlink.
This is particularly relevant for adding entries to the index from the worktree
and for checking out files.
Diffstat (limited to 'src/submodule.c')
| -rw-r--r-- | src/submodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/submodule.c b/src/submodule.c index 233957e43..0bc580876 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -382,7 +382,7 @@ int git_submodule_name_is_valid(const git_repository *repo, const char *name, in } /* FIXME: Un-consting it to reduce the amount of diff */ - isvalid = git_path_isvalid((git_repository *)repo, buf.ptr, flags); + isvalid = git_path_isvalid((git_repository *)repo, buf.ptr, 0, flags); git_buf_free(&buf); return isvalid; |
