summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/git-gpick2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/git-gpick b/bin/git-gpick
index c7cda46..d77c991 100755
--- a/bin/git-gpick
+++ b/bin/git-gpick
@@ -2575,7 +2575,7 @@ sub verify_delete($$$$$$$)
# not just the current and the previously pushed one.
my $parts = verify_local_commit($lcl_commit, $rmt_commit, $rmt_ps);
if ($parts) {
- if ($pushed_ps ne "?") { # The PatchSet must be actually still present.
+ if ($pushed_commit && ($pushed_ps ne "?")) { # The PatchSet must be actually still present.
$parts = verify_local_commit($lcl_commit, $pushed_commit, $pushed_ps);
if ($parts) {
$annot = format_parts($parts)." PS$pushed_ps";