bare cleanup
This commit is contained in:
parent
22e9f445ab
commit
ef5330120c
3 changed files with 4 additions and 2 deletions
|
@ -29,7 +29,7 @@ seek = [withFilesNotInGit start, withFilesUnlocked start]
|
||||||
- moving it into the annex directory and setting up the symlink pointing
|
- moving it into the annex directory and setting up the symlink pointing
|
||||||
- to its content. -}
|
- to its content. -}
|
||||||
start :: BackendFile -> CommandStart
|
start :: BackendFile -> CommandStart
|
||||||
start p@(_, file) = notAnnexed file $ do
|
start p@(_, file) = notBareRepo $ notAnnexed file $ do
|
||||||
s <- liftIO $ getSymbolicLinkStatus file
|
s <- liftIO $ getSymbolicLinkStatus file
|
||||||
if isSymbolicLink s || not (isRegularFile s)
|
if isSymbolicLink s || not (isRegularFile s)
|
||||||
then stop
|
then stop
|
||||||
|
|
|
@ -26,7 +26,7 @@ seek :: [CommandSeek]
|
||||||
seek = [withStrings start]
|
seek = [withStrings start]
|
||||||
|
|
||||||
start :: String -> CommandStart
|
start :: String -> CommandStart
|
||||||
start s = do
|
start s = notBareRepo $ do
|
||||||
let u = parseURI s
|
let u = parseURI s
|
||||||
case u of
|
case u of
|
||||||
Nothing -> error $ "bad url " ++ s
|
Nothing -> error $ "bad url " ++ s
|
||||||
|
|
|
@ -16,3 +16,5 @@ as non-bare repositories. Except for these caveats:
|
||||||
checkouts.
|
checkouts.
|
||||||
* `git annex unused` in a bare repository only knows about keys used in
|
* `git annex unused` in a bare repository only knows about keys used in
|
||||||
branches that have been pushed to the bare repository. So use it with care..
|
branches that have been pushed to the bare repository. So use it with care..
|
||||||
|
* Commands that need a work tree, like `git annex add` won't work in a bare
|
||||||
|
repository, of course.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue