Commit e3f8d58d12dae19d6041733c4adbf29a5891447e

Michael Schubert 2012-08-14T23:07:54

indexer: do not require absolute path

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/indexer.c b/src/indexer.c
index 85ffb16..7d4e18d 100644
--- a/src/indexer.c
+++ b/src/indexer.c
@@ -599,11 +599,6 @@ int git_indexer_new(git_indexer **out, const char *packname)
 
 	assert(out && packname);
 
-	if (git_path_root(packname) < 0) {
-		giterr_set(GITERR_INDEXER, "Path is not absolute");
-		return -1;
-	}
-
 	idx = git__calloc(1, sizeof(git_indexer));
 	GITERR_CHECK_ALLOC(idx);