[Patchew-devel] [PATCH v3] cli: Fix git fetch cmdline

Paolo Bonzini posted 1 patch 3 years, 4 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/patchew next tags/patchew/20201120144558.157600-1-pbonzini@redhat.com
patchew-cli | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[Patchew-devel] [PATCH v3] cli: Fix git fetch cmdline
Posted by Paolo Bonzini 3 years, 4 months ago
From: Fam Zheng <fam@euphon.net>

The argument causes an error when doing git-fetch.  Seems to be a bug
introduced in 7e35f90584.

Message-Id: <20201022144446.3989941-1-fam@euphon.net>
[Paolo: use --force, which is what 7e35f90584 wanted to achieve]
---
 patchew-cli | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/patchew-cli b/patchew-cli
index f872c1d..831c803 100755
--- a/patchew-cli
+++ b/patchew-cli
@@ -71,7 +71,7 @@ def git_clone_repo(clone, remote, head, logf, checkout=True, recursive=False):
     )
     if head.startswith("refs/tags/"):
         subprocess.check_call(
-            ["git", "fetch", remote_name, "+%s:%s" % (head, head)],
+            ["git", "fetch", "--force", remote_name, head],
             cwd=cache_repo,
             stdout=logf,
             stderr=logf,
-- 
2.28.0

_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel

Re: [Patchew-devel] [PATCH v3] cli: Fix git fetch cmdline
Posted by Philippe Mathieu-Daudé 3 years, 4 months ago
On 11/20/20 3:45 PM, Paolo Bonzini wrote:
> From: Fam Zheng <fam@euphon.net>
> 
> The argument causes an error when doing git-fetch.  Seems to be a bug
> introduced in 7e35f90584.
> 
> Message-Id: <20201022144446.3989941-1-fam@euphon.net>
> [Paolo: use --force, which is what 7e35f90584 wanted to achieve]
> ---
>  patchew-cli | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>

_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel