]> git.ipfire.org Git - thirdparty/git.git/blobdiff - gpg-interface.c
git-worktree.txt: discuss branch-based vs. throwaway worktrees
[thirdparty/git.git] / gpg-interface.c
index 2d538bcd6e30d1314f76d89764284f8735cd187f..b49927083661c8ca695112b8432691f17ed6d835 100644 (file)
@@ -282,12 +282,12 @@ static int verify_signed_buffer(const char *payload, size_t payload_size,
        if (!fmt)
                BUG("bad signature '%s'", signature);
 
-       argv_array_push(&gpg.args, fmt->program);
-       argv_array_pushv(&gpg.args, fmt->verify_args);
-       argv_array_pushl(&gpg.args,
-                        "--status-fd=1",
-                        "--verify", temp->filename.buf, "-",
-                        NULL);
+       strvec_push(&gpg.args, fmt->program);
+       strvec_pushv(&gpg.args, fmt->verify_args);
+       strvec_pushl(&gpg.args,
+                    "--status-fd=1",
+                    "--verify", temp->filename.buf, "-",
+                    NULL);
 
        if (!gpg_status)
                gpg_status = &buf;
@@ -434,11 +434,11 @@ int sign_buffer(struct strbuf *buffer, struct strbuf *signature, const char *sig
        size_t i, j, bottom;
        struct strbuf gpg_status = STRBUF_INIT;
 
-       argv_array_pushl(&gpg.args,
-                        use_format->program,
-                        "--status-fd=2",
-                        "-bsau", signing_key,
-                        NULL);
+       strvec_pushl(&gpg.args,
+                    use_format->program,
+                    "--status-fd=2",
+                    "-bsau", signing_key,
+                    NULL);
 
        bottom = signature->len;