It is never read, so we can pass NULL to resolve_ref_unsafe().
Signed-off-by: Michael Haggerty <[email protected]>
---
builtin/submodule--helper.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c
index ed4f60b..c72365e 100644
--- a/builtin/submodule--helper.c
+++ b/builtin/submodule--helper.c
@@ -17,9 +17,8 @@ static char *get_default_remote(void)
{
char *dest = NULL, *ret;
unsigned char sha1[20];
- int flag = 0;
struct strbuf sb = STRBUF_INIT;
- const char *refname = resolve_ref_unsafe("HEAD", 0, sha1, &flag);
+ const char *refname = resolve_ref_unsafe("HEAD", 0, sha1, NULL);
if (!refname)
die("No such ref: HEAD");
--
2.8.0.rc3
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html