From fd5aabf97f680c676605e20ed7265983c3453e60 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Sat, 22 Oct 2016 17:52:48 +0200 Subject: [PATCH] add gitfetches, quick vim updates --- local/bin/gitfetcher | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 local/bin/gitfetcher diff --git a/local/bin/gitfetcher b/local/bin/gitfetcher new file mode 100755 index 0000000..e67b84b --- /dev/null +++ b/local/bin/gitfetcher @@ -0,0 +1,15 @@ +#!/bin/bash + +wd="$(pwd)" +temp="$(mktemp)" + +find /data -name '.git' -exec dirname \{\} \; | while read gitrepo; do + cd "$gitrepo" + echo "$gitrepo" + + git remote | while read remote; do + git fetch --prune "$remote" + done 2>&1 | sed 's/^/ /' +done + +cd "$wd"