diff options
author | Stacy Harper <contact@stacyharper.net> | 2022-08-02 08:49:18 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-08-04 22:01:29 +0200 |
commit | 12a282c7095094a853be9f6b813a47cee5c53208 (patch) | |
tree | 1d5c0bfb9a780340dc3ca6d47b5304ec79015c9d | |
parent | 52c2916984d9be057e8ae1becefaca9d8301711d (diff) | |
download | aerc-12a282c7095094a853be9f6b813a47cee5c53208.tar.gz aerc-12a282c7095094a853be9f6b813a47cee5c53208.zip |
sourcehut: fix thank-you template for !master branches
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r-- | integrations/sourcehut.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/sourcehut.md b/integrations/sourcehut.md index 854bdf6d..9cdd6a7d 100644 --- a/integrations/sourcehut.md +++ b/integrations/sourcehut.md @@ -34,7 +34,7 @@ X-Sourcehut-Patchset-Update: APPLIED Thanks! -{{exec "{ git remote get-url --push origin; git reflog -2 origin/master --pretty=format:%h | xargs printf '%s\n' | tac; } | xargs printf 'To %s\n %s..%s master -> master'" ""}} +{{exec `branch="$(git branch --show-current)"; { git remote get-url --push origin; git reflog -2 "origin/$branch" --pretty=format:%h | xargs printf '%s\n' | tac; } | xargs printf "To %s\n %s..%s $branch -> $branch"` ""}} ``` This template can be used by executing: `:reply -a -T[template-name]` |