diff options
| author | Carlos Martín Nieto <cmn@elego.de> | 2012-06-28 09:33:08 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@elego.de> | 2012-06-28 10:24:03 +0200 |
| commit | 371599576a82b43ab30fe66feadcfb3045e649ff (patch) | |
| tree | e08bb3bff814fe9614d607c0c03a4e562ec3ebdb /examples | |
| parent | ed754a75e145352c02da62b5d56df5866d7eec26 (diff) | |
| download | libgit2-371599576a82b43ab30fe66feadcfb3045e649ff.tar.gz | |
indexer: don't use '/objects/pack/' unconditionally
Not everyone who indexes a packfile wants to put it in the standard
git repository location.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/network/Makefile | 2 | ||||
| -rw-r--r-- | examples/network/index-pack.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/Makefile b/examples/network/Makefile index 298b1dc86..9afd49e5d 100644 --- a/examples/network/Makefile +++ b/examples/network/Makefile @@ -2,7 +2,7 @@ default: all CC = gcc CFLAGS += -g -CFLAGS += -I../../include -L../../build -lgit2 -lpthread +CFLAGS += -I../../include -L../../build -L../.. -lgit2 -lpthread OBJECTS = \ git2.o \ diff --git a/examples/network/index-pack.c b/examples/network/index-pack.c index 5824fc555..ef5a35957 100644 --- a/examples/network/index-pack.c +++ b/examples/network/index-pack.c @@ -25,7 +25,7 @@ int index_pack(git_repository *repo, int argc, char **argv) return EXIT_FAILURE; } - if (git_indexer_stream_new(&idx, ".git") < 0) { + if (git_indexer_stream_new(&idx, ".") < 0) { puts("bad idx"); return -1; } |
