Skip to content

Commit a268a5f

Browse files
committed
Cancel impact of SSH agent forwarding
1 parent 7b2746f commit a268a5f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

hooks/post-receive.sh

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ set -o pipefail
77
ruby_git="/var/git/ruby.git"
88
ruby_commit_hook="$(cd "$(dirname $0)"; cd ..; pwd)"
99

10+
# Cancel impact of SSH Agent Forwarding to git push by matzbot
11+
unset SSH_AUTH_SOCK
12+
1013
function log() {
1114
echo -e "[$$: $(date "+%Y-%m-%d %H:%M:%S %Z")] $1"
1215
}

hooks/update.sh

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ refname="$1"
77
oldrev="$2"
88
newrev="$3"
99

10+
# Cancel impact of SSH Agent Forwarding to git push by matzbot
11+
unset SSH_AUTH_SOCK
12+
1013
function log() {
1114
echo -e "[$$: $(date "+%Y-%m-%d %H:%M:%S %Z")] $1"
1215
}

0 commit comments

Comments
 (0)