From 2ea4062c8dd6d9406132d29979163c11c3560823 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Fri, 23 Aug 2019 05:35:10 +0000
Subject: [PATCH] script to fix AUR when files changed locally

---
 fix_AUR.sh |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/fix_AUR.sh b/fix_AUR.sh
new file mode 100755
index 0000000..3b57c2a
--- /dev/null
+++ b/fix_AUR.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+CHDIR=$(dirname "$(realpath $0)")/chroot
+mount --bind $CHDIR $CHDIR
+$CHDIR/bin/arch-chroot $CHDIR su joel -c "find /build/repo/dependencies -maxdepth 1 -not -path '*\/.*' -type d -exec git -C {} fetch \; -exec git -C {} reset --hard origin/master \;
+					   		  	 	  	  find /build/repo -maxdepth 1 -not -path '*\/.*' -type d -exec git -C {} fetch \; -exec git -C {} reset --hard origin/master \;"
+umount $CHDIR

--
Gitblit v1.9.3