scripts/git: Stop hard-coding the bash path in the git scripts

Some OSes don't have bash in /usr/bin, others have an ancient bash at
this path.

Fixes bug 30840; bugfix on 0.4.0.1-alpha.
This commit is contained in:
teor 2019-06-11 14:29:10 +10:00
parent 0635170cf1
commit 973800b847
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A
6 changed files with 9 additions and 5 deletions

4
changes/bug30840 Normal file
View File

@ -0,0 +1,4 @@
o Minor bugfixes (git scripts):
- Stop hard-coding the bash path in the git scripts. Some OSes don't
have bash in /usr/bin, others have an ancient bash at this path.
Fixes bug 30840; bugfix on 0.4.0.1-alpha.

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##############################
# Configuration (change me!) #

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##################################
# User configuration (change me) #

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# The remote upstream branch on which git.torproject.org/tor.git points to.
UPSTREAM_BRANCH=${TOR_UPSTREAM_REMOTE_NAME:-"upstream"}

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# To install this script, copy it to .git/hooks/pre-commit in local copy of
# tor git repo and make sure it has permission to execute.

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# git pre-push hook script to:
# 1) prevent "fixup!" and "squash!" commit from ending up in master, release-*