lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 4c3cb59 2/4: List commands to symlink git hoo


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 4c3cb59 2/4: List commands to symlink git hooks/
Date: Sat, 11 Nov 2017 18:29:34 -0500 (EST)

branch: master
commit 4c3cb590f8848826b0088ae20f869e1da9f998e0
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    List commands to symlink git hooks/
    
    Copied these commands from 'README.schroot'. Explained that they may
    need to be rerun when the repository is casually copied.
---
 gwc/develop2.txt | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/gwc/develop2.txt b/gwc/develop2.txt
index eb22d72..993b4c9 100644
--- a/gwc/develop2.txt
+++ b/gwc/develop2.txt
@@ -4,11 +4,23 @@
   #   http://lists.nongnu.org/archive/html/lmi/2016-03/msg00031.html
 
   # Initial setup: create a working copy, cloned from the
-  # already-provided "blessed" repo
+  # already-provided "blessed" repo...
 
 cd /opt/lmi
 git clone file:///opt/lmi/blessed/proprietary
 
+  # ...then symlink its hooks/ directory:
+
+cd /opt/lmi/proprietary
+mv .git/hooks .git/hooks-orig
+ln --symbolic --force --no-dereference ../hooks .git
+
+  # When migrating to a new machine, restore that symlink explicitly
+  # in case the working copy was transferred by simplistic means:
+
+cd /opt/lmi/proprietary
+ln --symbolic --force --no-dereference ../hooks .git
+
   # Create a bundle to share by email
 
   # Make some changes, then run both the following sets of commands



reply via email to

[Prev in Thread] Current Thread [Next in Thread]