diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-01-19 17:07:49 +0100 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-01-19 17:07:49 +0100 |
commit | d0ec3fb8f07988779783f69ab6cf5f3431c7aa3e (patch) | |
tree | 149e00f24ba025774579ebdfbe69155b757d5aa6 /src | |
parent | 585a2eb75adb71cb6bf73e548a23f86b30de2d4a (diff) | |
download | libgit2-d0ec3fb8f07988779783f69ab6cf5f3431c7aa3e.tar.gz |
indexer: save the pack index with the right name
Truncate at the slash; otherwise we get ppack-*.idx filenames.
Diffstat (limited to 'src')
-rw-r--r-- | src/indexer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indexer.c b/src/indexer.c index 8fdf89d9d..1b2cd61e0 100644 --- a/src/indexer.c +++ b/src/indexer.c @@ -164,7 +164,7 @@ static int index_path(git_buf *path, git_indexer *idx) GIT_OID_HEXSZ + strlen(suffix) + 1) < GIT_SUCCESS) return GIT_ENOMEM; - git_buf_truncate(path, slash + 1); + git_buf_truncate(path, slash); git_buf_puts(path, prefix); git_oid_fmt(path->ptr + path->size, &idx->hash); path->size += GIT_OID_HEXSZ; |