aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Do not preserve permissions and acls when copying files from one local git ↵Gravatar Joey Hess2014-08-26
| | | | | | | | | | | | | | | | | repository to another. Timestamps are still preserved as long as cp --preserve=timestamps is supported. This avoids cp -a overriding the default mode acls that the user might have set in a git repository. With GNU cp, this behavior change should not be a breaking change, because git-anex also uses rsync sometimes in the same situation, and has only ever preserved timestamps when using rsync. Systems without GNU cp will no longer use cp -a, but instead just cp. So, timestamps will no longer be preserved. Preserving timestamps when copying between repos is not guaranteed anyway. Closes: #729757
* no lsof build-dep on hurdGravatar Joey Hess2014-08-23
| | | | No assistant there
* Fix stub git-annex test support when built without tasty.Gravatar Joey Hess2014-08-23
|
* Fix handing of autocorrection when running outside a git repository.Gravatar Joey Hess2014-08-23
| | | | | | Old behavior was to take the first fuzzy match. Now, it checks the globa git config, and runs the normal fuzzy handling, including failing to run a semi-random command by default.
* more linksGravatar Joey Hess2014-08-23
|
* height3Gravatar Joey Hess2014-08-23
|
* fix imports for windowsGravatar Joey Hess2014-08-23
|
* height2Gravatar Joey Hess2014-08-23
|
* heightGravatar Joey Hess2014-08-23
|
* add debian buildd statusGravatar Joey Hess2014-08-23
|
* Merge branch 'master' of ssh://git-annex.branchable.comGravatar Joey Hess2014-08-23
|\
| * (no commit message)Gravatar https://launchpad.net/~pauli-virtanen2014-08-23
| |
| * Added a comment: path on windowsGravatar https://www.google.com/accounts/o8/id?id=AItOawmBmv0HhwTFxkpxlf8ifTlMOHnIwHCHTYs2014-08-23
| |
| * Added a commentGravatar https://www.google.com/accounts/o8/id?id=AItOawk7iPiqWr3BVPLWEDvJhSSvcOqheLEbLNo2014-08-23
| |
* | Merge branch 'master' of ssh://git-annex.branchable.comGravatar Joey Hess2014-08-23
|\|
| * (no commit message)Gravatar https://www.google.com/accounts/o8/id?id=AItOawk7iPiqWr3BVPLWEDvJhSSvcOqheLEbLNo2014-08-23
| |
| * (no commit message)Gravatar warroyo2014-08-22
| |
| * Added a commentGravatar zardoz2014-08-22
| |
| * Added a commentGravatar zardoz2014-08-22
| |
| * Added a commentGravatar zardoz2014-08-22
| |
| * Added a commentGravatar zardoz2014-08-22
| |
| * Added a commentGravatar zardoz2014-08-22
| |
| * Added a commentGravatar zardoz2014-08-22
| |
| * Added a commentGravatar zardoz2014-08-22
| |
| * Added a commentGravatar zardoz2014-08-22
| |
| * (no commit message)Gravatar zardoz2014-08-22
| |
| * (no commit message)Gravatar zardoz2014-08-21
| |
| * Added a comment: Change the name of the bugGravatar Hans_Ryding2014-08-21
| |
| * Added a comment: Quite rightGravatar Hans_Ryding2014-08-21
| |
* | use types to enforce that removeAnnex can only be called inside lockContentGravatar Joey Hess2014-08-20
|/ | | | | | | | | | | This fixed one bug where it needed to be and wasn't (in Assistant.Unused). And also found one place where lockContent was used unnecessarily (by drop --from remote). A few other places like uninit probably don't really need to lockContent, but it doesn't hurt to do call it anyway. This commit was sponsored by David Wagner.
* Merge branch 'master' of ssh://git-annex.branchable.comGravatar Joey Hess2014-08-20
|\
* | devblogGravatar Joey Hess2014-08-20
| |
* | final scary locking refactoring (for now)Gravatar Joey Hess2014-08-20
| | | | | | | | | | | | | | | | | | | | Note that while before checkTransfer this called getLock with WriteLock, getLockStatus's use of ReadLock will also notice any exclusive locks. Since transfer info files are only locked exclusively, never shared, there is no behavior change. Also, fixes checkLocked to actually return Just False when the file exists, but is not locked.
* | more lock file refactoringGravatar Joey Hess2014-08-20
| | | | | | | | | | | | | | | | Also fixes a test suite failures introduced in recent commits, where inAnnexSafe failed in indirect mode, since it tried to open the lock file ReadWrite. This is why the new checkLocked opens it ReadOnly. This commit was sponsored by Chad Horohoe.
* | avoid trying to create a content file in order to lock itGravatar Joey Hess2014-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The nice refactoring in 7165e4035e9b6cfeaa5d659341749cc957b27e14 highlighted a bug in lockContent -- when the content is not present, this incorrectly created an empty lock file, using the same filename as the content file. This seems like it could result in empty objects, which fsck would detect and complain about. Both drop and move --to call lockContent, as does Remote.Git.dropKey -- I think we got lucky and this bug didn't show up because both all of those only operate on files that are present. So this bug could only manifest if there was a race, and a file's content was dropped at just the wrong time, just as another process was about to drop it. (And then only if the other process's dropping failed, otherwise it'd delete the empty object file.) Hmm, move --from also called lockContent. Unnecessarily, since the content is not being removed from the local annex. In this case, the combination of the 2 bugs could result in an empty lock file being written, and then if the download of the content failed, left in the object directory as the content. This commit also optimises lockContent, avoiding an unncessary doesFileExist test and instead just catching the exception that's thrown when the file doesn't exist. This commit was sponsored by Justine Lam.
* | more lock file refactoringGravatar Joey Hess2014-08-20
| |
* | reorganize and refactor lock codeGravatar Joey Hess2014-08-20
| | | | | | | | | | | | | | | | Added a convenience Utility.LockFile that is not a windows/posix portability shim, but still manages to cut down on the boilerplate around locking. This commit was sponsored by Johan Herland.
| * Added a comment: GHC 7.8 IssueGravatar https://www.google.com/accounts/o8/id?id=AItOawkftzaCvV7EDKVDfJhsQZ3E1Vn-0db516w2014-08-20
| |
* | fix lockFileShared to actually create lock fileGravatar Joey Hess2014-08-20
|/ | | | | | | This was a bug, but it was only used for ssh locks and by the hook special remote locking. At least in the case of ssh locks, the lock files happened to already exist before this tried to use them, so the bug didn't cause anything to break.
* whoops, I the debug printsGravatar Joey Hess2014-08-20
|
* Merge branch 'master' of ssh://git-annex.branchable.comGravatar Joey Hess2014-08-20
|\
* | When accessing a local remote, shut down git-cat-file processes afterwards, ↵Gravatar Joey Hess2014-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to ensure that remotes on removable media can be unmounted. Closes: #758630 This does mean that eg, copying multiple files to a local remote will become slightly slower, since it now restarts git-cat-file after each copy. Should not be significant slowdown. The reason git-cat-file is run on the remote at all is to update its location log. In order to add an item to it, it needs to get the current content of the log. Finding a way to avoid needing to do that would be a good path to avoiding this slowdown if it does become a problem somehow. This commit was sponsored by Evan Deaubl.
* | forgot some liftsGravatar Joey Hess2014-08-20
| |
* | Ensure that all lock fds are close-on-exec, fixing various problems with ↵Gravatar Joey Hess2014-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | them being inherited by child processes such as git commands. (With the exception of daemon pid locking.) This fixes at part of #758630. I reproduced the assistant locking eg, a removable drive's annex journal lock file and forking a long-running git-cat-file process that inherited that lock. This did not affect Windows. Considered doing a portable Utility.LockFile layer, but git-annex uses posix locks in several special ways that have no direct Windows equivilant, and it seems like it would mostly be a complication. This commit was sponsored by Protonet.
| * Added a commentGravatar http://joeyh.name/2014-08-20
|/
* (no commit message)Gravatar Hans_Ryding2014-08-20
|
* (no commit message)Gravatar Hans_Ryding2014-08-20
|
* (no commit message)Gravatar Hans_Ryding2014-08-20
|
* Added a comment: Log with --debugGravatar jg123h12jh3y12g3y2014-08-20
|
* Added a comment: brew doesn't include git-remote-gcryptGravatar Ganwell2014-08-19
|