summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-04-06 13:46:11 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-04-06 13:46:11 -0400
commit3fb763b096fb5c4a2c9119f88ea46ed81bdda07e (patch)
treeaaa0f0647722d244d2186b129dfb3eea94117943
parent0e2090b7358e3218fcba837e8298617b5d7fea6d (diff)
avoid using --literal-pathspecs with git older than 1.8.1 which added it
Windows is still building with an older git.
-rw-r--r--Annex/Fixup.hs7
-rw-r--r--debian/changelog2
-rw-r--r--debian/control4
3 files changed, 8 insertions, 5 deletions
diff --git a/Annex/Fixup.hs b/Annex/Fixup.hs
index 99b4ea2d5..4d9afea91 100644
--- a/Annex/Fixup.hs
+++ b/Annex/Fixup.hs
@@ -11,6 +11,7 @@ import Git.Types
import Git.Config
import Types.GitConfig
import qualified Git.Construct as Construct
+import qualified Git.BuildVersion
import Utility.Path
import Utility.SafeCommand
import Utility.Directory
@@ -36,8 +37,10 @@ fixupRepo r c = do
{- Disable git's built-in wildcard expansion, which is not wanted
- when using it as plumbing by git-annex. -}
disableWildcardExpansion :: Repo -> Repo
-disableWildcardExpansion r = r
- { gitGlobalOpts = gitGlobalOpts r ++ [Param "--literal-pathspecs"] }
+disableWildcardExpansion r
+ | Git.BuildVersion.older "1.8.1" = r
+ | otherwise = r
+ { gitGlobalOpts = gitGlobalOpts r ++ [Param "--literal-pathspecs"] }
{- Direct mode repos have core.bare=true, but are not really bare.
- Fix up the Repo to be a non-bare repo, and arrange for git commands
diff --git a/debian/changelog b/debian/changelog
index 8f6575868..ae501555a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,7 +10,7 @@ git-annex (5.20150406) unstable; urgency=medium
guid has been downloaded before, even when the url has changed.
* importfeed: Always store itemid in metadata; before this was only
done when annex.genmetadata was set.
- * Relax debian package dependencies to git >= 1:1.7.7.6 rather
+ * Relax debian package dependencies to git >= 1:1.8.1 rather
than needing >= 1:2.0.
* test: Fix --list-tests
* addurl --file: When used with a special remote that claims
diff --git a/debian/control b/debian/control
index 937444135..6cb4a6327 100644
--- a/debian/control
+++ b/debian/control
@@ -75,7 +75,7 @@ Build-Depends:
lsof [!kfreebsd-i386 !kfreebsd-amd64 !hurd-any],
ikiwiki,
perlmagick,
- git (>= 1:1.7.7.6),
+ git (>= 1:1.8.1),
rsync,
wget,
curl,
@@ -92,7 +92,7 @@ Package: git-annex
Architecture: any
Section: utils
Depends: ${misc:Depends}, ${shlibs:Depends},
- git (>= 1:1.7.7.6),
+ git (>= 1:1.8.1),
rsync,
wget,
curl,