]> git.eshelyaron.com Git - emacs.git/commitdiff
autogen.sh now arranges for git to check hashes
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 31 Jan 2016 21:43:13 +0000 (13:43 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 31 Jan 2016 21:43:47 +0000 (13:43 -0800)
Suggested by Karl Fogel in:
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01802.html
* autogen.sh: Do "git config transfer.fsckObjects true".

autogen.sh

index a63c53c903c7699cab36838f1323cc186c94f112..877bb8476f772e6f8fbec254dd1986e497bbfa4a 100755 (executable)
@@ -220,6 +220,11 @@ echo timestamp > src/stamp-h.in || exit
 ## Configure Git, if using Git.
 if test -d .git && (git status -s) >/dev/null 2>&1; then
 
+    # Check hashes when transferring objects among repositories.
+
+    git config transfer.fsckObjects true || exit
+
+
     # Configure 'git diff' hunk header format.
 
     git config 'diff.elisp.xfuncname' \