[PATCH] etc: pre-push: Use Bash instead of sh.

  • Done
  • quality assurance status badge
Details
2 participants
  • gemmaro
  • Maxim Cournoyer
Owner
unassigned
Submitted by
gemmaro
Severity
normal

Debbugs page

G
G
gemmaro wrote on 2 Jun 05:02 -0700
(address . guix-patches@gnu.org)(name . gemmaro)(address . gemmaro.dev@gmail.com)
b5edb28e80e1e5e2de3453f15d6fb51cd9549ebd.1748865682.git.gemmaro.dev@gmail.com
* etc/git/pre-push (shebang): Use Bash instead of shell in the hook script.
This resolves the error encountered when running git push:
".git/hooks/pre-push: 41: Syntax error: ";" unexpected".

Change-Id: I249132122ecc57fd698dfa24e87bdf2fd0dc2080
---
etc/git/pre-push | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (14 lines)
diff --git a/etc/git/pre-push b/etc/git/pre-push
index c876b1b6a3..e6e8e7ec55 100755
--- a/etc/git/pre-push
+++ b/etc/git/pre-push
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env bash
# This hook script prevents the user from pushing to Savannah if any of the new
# commits' OpenPGP signatures cannot be verified, or if a commit is signed

base-commit: 93ec4131b6ea489b17622d25bd7a5194ac7eedae
--
2.49.0
M
M
Maxim Cournoyer wrote 4 days ago
(name . gemmaro)(address . gemmaro.dev@gmail.com)(address . 78670-done@debbugs.gnu.org)
87a52lv39u.fsf@guixotic.coop
Hi,

gemmaro <gemmaro.dev@gmail.com> writes:

Toggle quote (4 lines)
> * etc/git/pre-push (shebang): Use Bash instead of shell in the hook script.
> This resolves the error encountered when running git push:
> ".git/hooks/pre-push: 41: Syntax error: ";" unexpected".

I believe this was addressed differently in
96da4def781a1b01536fd4335be0446984dc6705.

--
Thanks,
Maxim
Closed
M
M
Maxim Cournoyer wrote 4 days ago
(name . gemmaro)(address . gemmaro.dev@gmail.com)(address . 78670-done@debbugs.gnu.org)
878qi5v393.fsf@guixotic.coop
Hi,

gemmaro <gemmaro.dev@gmail.com> writes:

Toggle quote (4 lines)
> * etc/git/pre-push (shebang): Use Bash instead of shell in the hook script.
> This resolves the error encountered when running git push:
> ".git/hooks/pre-push: 41: Syntax error: ";" unexpected".

I believe this was addressed differently in
96da4def781a1b01536fd4335be0446984dc6705.

--
Thanks,
Maxim
Closed
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 78670@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 78670
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch