mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Use constant for submodule file mode
This commit is contained in:
@@ -191,7 +191,7 @@ public:
|
||||
if (git_repository_index(&index, repo) == GIT_OK) {
|
||||
git_index_read(index);
|
||||
const git_index_entry *entry = git_index_get_bypath(index, path, 0);
|
||||
isSubmodule = entry != NULL && (entry->mode & S_IFMT) == 0160000;
|
||||
isSubmodule = entry != NULL && (entry->mode & S_IFMT) == GIT_FILEMODE_COMMIT;
|
||||
git_index_free(index);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user