OSDN Git Service
(root)
/
git-core
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add more tests for git hash-object
[git-core/git.git]
/
refs.c
diff --git
a/refs.c
b/refs.c
index
1b0050e
..
4db73ed
100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-368,7
+368,8
@@
int resolve_gitlink_ref(const char *path, const char *refname, unsigned char *re
const char *resolve_ref(const char *ref, unsigned char *sha1, int reading, int *flag)
{
- int depth = MAXDEPTH, len;
+ int depth = MAXDEPTH;
+ ssize_t len;
char buffer[256];
static char ref_buffer[256];