diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2023-11-16 16:50:24 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2023-11-16 16:50:24 +0100 |
commit | ece509a02680cf8e6290253426ddb04818f49c3d (patch) | |
tree | 481ab92dd68fc9284fbe815b63241d7257f7e792 /git-request-get | |
parent | cb6c3b10181a2a4b03ca750fe68198ba5092171e (diff) | |
download | hlupak-ece509a02680cf8e6290253426ddb04818f49c3d.tar.gz |
Some ideas
Diffstat (limited to 'git-request-get')
-rwxr-xr-x | git-request-get | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/git-request-get b/git-request-get new file mode 100755 index 0000000..c5d3c3d --- /dev/null +++ b/git-request-get @@ -0,0 +1,10 @@ +#!/bin/bash +set -eux + +# 1. Collect URL of the incoming repo +# 2. Check it is in our remotes +# 3. If it isn't, add it +# 4. Fetch the remote +# 5. Create new branch + +mapfile REMOTES < <(git remote -v|awk '{print $1,$2;}') |