From b7024d4761b2b5737f447a6cc8e5908fc402f124 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 12 Mar 2013 08:09:31 -0400 Subject: webapp: DTRT when told to create a git repo that already exists. --- Git/Construct.hs | 3 +++ debian/changelog | 1 + doc/bugs/Partial_direct__47__indirect_repo.mdwn | 2 ++ 3 files changed, 6 insertions(+) diff --git a/Git/Construct.hs b/Git/Construct.hs index f9f4b464a..7500617a0 100644 --- a/Git/Construct.hs +++ b/Git/Construct.hs @@ -18,6 +18,7 @@ module Git.Construct ( fromRemoteLocation, repoAbsPath, newFrom, + checkForRepo, ) where import System.Posix.User @@ -211,6 +212,8 @@ expandTilde = expandt True | c == '/' = (n, cs) | otherwise = findname (n++[c]) cs +{- Checks if a git repository exists in a directory. Does not find + - git repositories in parent directories. -} checkForRepo :: FilePath -> IO (Maybe RepoLocation) checkForRepo dir = check isRepo $ diff --git a/debian/changelog b/debian/changelog index bb61a654b..d6e888db3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -57,6 +57,7 @@ git-annex (4.20130228) UNRELEASED; urgency=low * addurl: Add --relaxed option. * assistant: Fix ~/.ssh/git-annex-shell wrapper to work when the ssh key does not force a command. + * webapp: DTRT when told to create a git repo that already exists. -- Joey Hess Wed, 27 Feb 2013 23:20:40 -0400 diff --git a/doc/bugs/Partial_direct__47__indirect_repo.mdwn b/doc/bugs/Partial_direct__47__indirect_repo.mdwn index 8c6ebf2ee..11cf7a1e8 100644 --- a/doc/bugs/Partial_direct__47__indirect_repo.mdwn +++ b/doc/bugs/Partial_direct__47__indirect_repo.mdwn @@ -20,3 +20,5 @@ Actual: * Typing `git annex indirect` on A & B shows conversion of precisely four files (three files originally checked into git and new file added to B ) back to indirect Thanks. + +> [[done]], webapp now avoids changing existing repos here. --[[Joey]] -- cgit v1.2.3