Use constant for submodule file mode

This commit is contained in:
Kevin Sawicki
2013-01-06 09:59:57 -08:00
parent a300146f2a
commit 64afd51ca4

View File

@@ -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);
}