summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-04-22 16:37:40 +0200
committerVicent Marti <tanoku@gmail.com>2013-04-22 16:37:40 +0200
commit4ef2c79cb6dc81e17b68ccf7c270bcc7e4f85bfb (patch)
treeba73734da59b8abbf6ebba5be3040c9525d88714
parenta29c6b5f47676d864af1e78c7927bc3cb2b329d7 (diff)
downloadlibgit2-4ef2c79cb6dc81e17b68ccf7c270bcc7e4f85bfb.tar.gz
odb: Disable inode checks for Win32
-rw-r--r--src/odb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/odb.c b/src/odb.c
index 1c7969fcb..8249c5adc 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -415,6 +415,9 @@ static int add_default_backends(
struct stat st;
git_odb_backend *loose, *packed;
+ /* TODO: inodes are not really relevant on Win32, so we need to find
+ * a cross-platform workaround for this */
+#ifndef GIT_WIN32
if (p_stat(objects_dir, &st) < 0) {
giterr_set(GITERR_ODB, "Failed to load object database in '%s'", objects_dir);
return -1;
@@ -425,6 +428,7 @@ static int add_default_backends(
if (backend->disk_inode == st.st_ino)
return 0;
}
+#endif
/* add the loose object backend */
if (git_odb_backend_loose(&loose, objects_dir, -1, 0) < 0 ||