Use a temporary file host to deliver the patch over XMPP
Signed-off-by: Aoi K <koizumi.aoi@kyoko-project.wer.ee>
このコミットが含まれているのは:
コミット
32961b5cc0
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $KyokoNet: git-send-xmpp, v0.0.2 2022/11/13 22:14:55 akoizumi Exp $
|
# $KyokoNet: git-send-xmpp, v0.0.3, 2022/11/22 17:48:03 akoizumi Exp $
|
||||||
#
|
#
|
||||||
# Send git patches over the XMPP protocol
|
# Send git patches over the XMPP protocol
|
||||||
# https://git.kyoko-project.wer.ee/koizumi.aoi/git-crap
|
# https://git.kyoko-project.wer.ee/koizumi.aoi/git-crap
|
||||||
|
@ -29,5 +29,5 @@ if [ -z $pass && -z $user && -z $target && -z $diff ]; then
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
printf "Sending patch file %s to recipient %s over XMPP\n" "${diff}" "${target}"
|
printf "Sending patch file %s to recipient %s over XMPP\n" "${diff}" "${target}"
|
||||||
cat $diff | xmppc --jid ${user} --pwd ${pass} -m message chat ${target}
|
xmppc --jid ${user} --pwd ${pass} -m message chat ${target} "$(curl -sF file=@$diff https://ttm.sh)"
|
||||||
fi
|
fi
|
||||||
|
|
読み込み中…
新しいイシューから参照