]> git.ipfire.org Git - thirdparty/git.git/blobdiff - submodule.c
travis-ci: build with GCC 4.8 as well
[thirdparty/git.git] / submodule.c
index b16c0ecc950c177e9f6bd0c553d593b08855a478..2cfaba059993e356e11eeabfaf5f67e9e26a3519 100644 (file)
@@ -994,7 +994,7 @@ static int submodule_needs_pushing(struct repository *r,
                if (start_command(&cp))
                        die("Could not run 'git rev-list <commits> --not --remotes -n 1' command in submodule %s",
                                        path);
-               if (strbuf_read(&buf, cp.out, 41))
+               if (strbuf_read(&buf, cp.out, the_hash_algo->hexsz + 1))
                        needs_pushing = 1;
                finish_command(&cp);
                close(cp.out);