~rjarry/aerc

12a282c7095094a853be9f6b813a47cee5c53208 — Stacy Harper 1 year, 1 month ago 52c2916
sourcehut: fix thank-you template for !master branches

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Acked-by: Robin Jarry <robin@jarry.cc>
1 files changed, 1 insertions(+), 1 deletions(-)

M integrations/sourcehut.md
M integrations/sourcehut.md => integrations/sourcehut.md +1 -1
@@ 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]`