From 608700bc65537076b88111c76657ae9075cd19b3 Mon Sep 17 00:00:00 2001
From: Frederik Lindenaar <frederik@lindenaar.nl>
Date: Tue, 16 Aug 2016 19:36:58 +0200
Subject: [PATCH] Process new modified (i.e. added) dhcp binding files (Git flag MM) so that new files can be added (Fixes #1)

---
 sync-router | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 mode change 100755 => 100644 sync-router

diff --git a/sync-router b/sync-router
old mode 100755
new mode 100644
index 9dc4fae..ea67de9
--- a/sync-router
+++ b/sync-router
@@ -42,7 +42,7 @@ do
 	echo removing  $filename as it is no longer in the repository
 	ssh -q $router "delete /force $fileto$filename"
 	;;
-    A |M)
+    A |M|MM)
   	echo updating and uploading modified file $filename
 	head -2 $filename | while read tag value
 	  do
--
libgit2 0.22.2