]> git.proxmox.com Git - libgit2.git/blobdiff - src/push.c
New upstream version 1.0.0+dfsg.1
[libgit2.git] / src / push.c
index 67ebcfb3e34c76648df7084536e74db66fff761b..34867c2e432b4a420303de54cf3d88400f7acba1 100644 (file)
@@ -349,8 +349,9 @@ static int queue_objects(git_push *push)
                if (git_oid_is_zero(&head->oid))
                        continue;
 
-               /* TODO */
-               git_revwalk_hide(rw, &head->oid);
+               if ((error = git_revwalk_hide(rw, &head->oid)) < 0 &&
+                   error != GIT_ENOTFOUND && error != GIT_EINVALIDSPEC && error != GIT_EPEEL)
+                       goto on_error;
        }
 
        error = git_packbuilder_insert_walk(push->pb, rw);