remember git server info. src script to ease its activation
authorEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Fri, 3 Apr 2015 12:06:49 +0000 (14:06 +0200)
committerEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Fri, 3 Apr 2015 12:06:49 +0000 (14:06 +0200)
scr/git/use-pre-commit.sh [deleted file]
scr/git/use_post-update.sh [new file with mode: 0755]
scr/git/use_pre-commit.sh [new file with mode: 0755]

diff --git a/scr/git/use-pre-commit.sh b/scr/git/use-pre-commit.sh
deleted file mode 100755 (executable)
index 04fcb26..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-cd `dirname $0`
-ln -sf ../../scr/git/pre-commit.sh ../../.git/hooks/pre-commit
diff --git a/scr/git/use_post-update.sh b/scr/git/use_post-update.sh
new file mode 100755 (executable)
index 0000000..a3ed7a9
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd `dirname $0`/../../.git/hooks
+mv post-update.sample post-update 2>/dev/null
diff --git a/scr/git/use_pre-commit.sh b/scr/git/use_pre-commit.sh
new file mode 100755 (executable)
index 0000000..04fcb26
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd `dirname $0`
+ln -sf ../../scr/git/pre-commit.sh ../../.git/hooks/pre-commit