aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgit-request-get14
-rw-r--r--test_message.mbx70
2 files changed, 6 insertions, 78 deletions
diff --git a/git-request-get b/git-request-get
index 2ba5ec4..c85b681 100755
--- a/git-request-get
+++ b/git-request-get
@@ -14,8 +14,6 @@ s/[[:space:]]\+//
s/\(=[[:digit:]]\{2\}\)\+$//
/^\(http\|git\)/p
}')"
-# mapfile -t -c 1 -C 'cb() { [[ "$2" =~ (git|http|ssh):// ]] && printf "%s\n" "$2"; }; cb' URLS <<<"$STR"
-# echo "$URLS[@]"
# 2. Check it is in our remotes
mapfile REMOTES < <(git remote -v|awk '{print $1,$2;}')
@@ -27,15 +25,15 @@ for rem in "${REMOTES[@]}" ; do
fi
done
-# 4. Create new branch
-BEG="$(echo "$STR" | awk '/^The following changes since commit / { print $NF }' | sed -e 's/[=:]*$//')"
+# 3. Find the tip of the offered branch
END="$(echo "$STR" | awk '/^for you to fetch changes up to / { print $NF }' | sed -e 's/[=:]*$//')"
-# 5. Fetch the remote
+# 4. Fetch the remote
if [[ -n "$REMOTE" ]] ; then
- git fetch $REMOTE $END
+ git fetch "$REMOTE" "$END"
else
- git fetch $URL $END
+ git fetch "$URL" "$END"
fi
-git checkout -b _4review FETCH_HEAD
+# 5. open new branch
+git checkout -B _4review FETCH_HEAD
diff --git a/test_message.mbx b/test_message.mbx
deleted file mode 100644
index 965ed0d..0000000
--- a/test_message.mbx
+++ /dev/null
@@ -1,70 +0,0 @@
-From ???@??? Thu Nov 16 15:45:08 2023
-Return-Path: <mcepl@cepl.eu>
-Delivered-To: <matej@ceplovi.cz>
-Received: from redcrew.org
- by redcrew.org (Dovecot) with LMTP id hYNqKYIlVmWJcgAAsTppAA
- for <matej@ceplovi.cz>; Thu, 16 Nov 2023 15:34:32 +0100
-Received: from localhost (unknown [185.22.237.37])
- (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits))
- (No client certificate requested)
- by redcrew.org (Postfix) with ESMTPSA id B8DE4C6A
- for <matej@ceplovi.cz>; Thu, 16 Nov 2023 15:34:32 +0100 (CET)
-Content-Type: multipart/signed;
- boundary=c26872f3bd544c9ed77f3e24467434acca42fafd261b2709670ce08ff787;
- micalg=pgp-sha1; protocol="application/pgp-signature"
-Date: Thu, 16 Nov 2023 15:34:32 +0100
-Message-Id: <CX0B77RJ7RB8.18BGVZJS64T53@cepl.eu>
-Subject: git request-pull output
-From: =?utf-8?q?Mat=C4=9Bj_Cepl?= <mcepl@cepl.eu>
-To: <matej@ceplovi.cz>
-Content-Transfer-Encoding: quoted-printable
-X-Mailer: aerc 0.16.0
-
---c26872f3bd544c9ed77f3e24467434acca42fafd261b2709670ce08ff787
-Mime-Version: 1.0
-Content-Transfer-Encoding: quoted-printable
-Content-Type: text/plain; charset=UTF-8
-
-The following changes since commit e486999efac243e561a6604553ec93d20e10cdbb=
-:
-
- Revert 957df43e (2023-11-03 22:57:18 +0100)
-
-are available in the Git repository at:
-
- https://gitlab.com/mcepl/m2crypto.git=20
-
-for you to fetch changes up to 102cd4d5c1818ecb5926dd538962f8b42c43b022:
-
- Raise proper exception in C (2023-11-03 23:42:49 +0100)
-
-----------------------------------------------------------------
-Mat=C4=9Bj Cepl (1):
- Raise proper exception in C
-
- src/M2Crypto/SSL/Connection.py | 15 ++++++++++-----
- src/SWIG/_ssl.i | 45 ++++++++++++++++++++++++++++++++++++++=
-+++----
- 2 files changed, 51 insertions(+), 9 deletions(-)
-
---=20
-http://matej.ceplovi.cz/blog/, @mcepl@floss.social
-GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8
-=20
-Anger is often what pain looks like when it shows itself in public.
- -- Krista Tippett
-
---c26872f3bd544c9ed77f3e24467434acca42fafd261b2709670ce08ff787
-Content-Type: application/pgp-signature; name="signature.asc"
-
------BEGIN PGP SIGNATURE-----
-
-iGwEABECACwWIQSJ70vGKIq/QxurJcPgn+8l2WSErAUCZVYoeA4cbWNlcGxAY2Vw
-bC5ldQAKCRDgn+8l2WSErAohAJ9/VsluRw5IdV7kUe9JMlLBsIfeAwCfYwJpq52m
-r8GM5J/XGCchNHU2+wU=
-=ivvg
------END PGP SIGNATURE-----
-
---c26872f3bd544c9ed77f3e24467434acca42fafd261b2709670ce08ff787--
-
-