Commit graph

8165 commits

Author SHA1 Message Date
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
f4095f7db8 Added a comment: thanks for the quick response! 2018-03-05 17:19:19 +00:00
Joey Hess
07e253b1fb
Improve SHA*E extension extraction code
Do not treat parts of the filename that contain punctuation or other
non-alphanumeric characters as extensions. Before, such characters were
filtered out.

Note that in 45308ec78b "foo.ba__________r"
was munged to ".bar" and so incorrectly treated as an extension. That was
fixed by changing the filter order, but not allowing punctuation seems a
better fix.

This assumes that extensions containing punctuation are rare. "_" seems the
most likely character; I used it in ikiwiki "._comment" files. But I can't
recall seeing it anywhere else. It certianly seems that no commonly used
extensions contain punctuation. If git-annex doesn't treat "._comment"
as an extension, it's not likely to break software that expects to see that
extension like some software expects to see .epub or .mp3.

This commit was sponsored by Jack Hill on Patreon.
2018-03-05 11:25:01 -04:00
Joey Hess
6d6e3c6c49
comment 2018-03-05 10:59:18 -04:00
rameshvenk
fc7596ad8f Added a comment: dyld: Symbol not found: _inflateValidate 2018-03-04 03:59:42 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
b88042e23d removed 2018-03-03 16:55:32 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
d98f1afa9c Added a comment: fixed prev commend 2018-03-03 16:55:16 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
32adc7ccd7 Added a comment: it seems to affect regular text too. 2018-03-03 16:49:10 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
9370a74059 Added a comment: this has something to do with the dot and space 2018-03-03 16:43:27 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
e124392f96 Added a comment: I've also upgraded the repo to version 6 2018-03-03 16:23:37 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
fe8284297b Added a comment: checked 6.20180112 and it's the same 2018-03-03 16:21:07 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
ca233145bc 2018-03-03 16:15:32 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
6c2a26ff2f 2018-03-03 16:14:45 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
ccc2c54d4f 2018-03-03 13:17:56 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
d4fda4e3e2 2018-03-03 13:16:45 +00:00
Joey Hess
db057dcff0
fix sync bug in direct mode
sync: Fix bug that prevented pulling changes into direct mode repositories
that were committed to remotes using git commit rather than git-annex sync.

This commit was supported by the NSF-funded DataLad project.
2018-02-26 14:10:03 -04:00
Joey Hess
42f154bd7e
Fix metadata hook script to support non-ascii characters
tips/automatically_adding_metadata/pre-commit-annex: Fix to not silently
skip filenames containing non-ascii characters.

git diff-index defaults to munging non-ascii characters. Using -z makes
it not do that, and then we just change the nulls to newlines.

This commit was sponsored by Jochen Bartl on Patreon.
2018-02-26 12:58:37 -04:00
git-annex@6f13b739194f758abc0b86556b7ce966c1bf3c00
48819cb92b 2018-02-26 10:40:06 +00:00
git-annex@6f13b739194f758abc0b86556b7ce966c1bf3c00
538cd3cfa9 2018-02-26 09:43:10 +00:00
yarikoptic
629de12e6c original discovery 2018-02-23 19:19:57 +00:00
Joey Hess
09e73a3ab6
annex.merge-annex-branches
Added annex.merge-annex-branches config setting which can be used to
disable automatic merge of git-annex branches.

I wonder if git-annex merge/sync/assistant should disable this
setting? Not sure yet, so have not done so. May be that users will not set
it in git config, but pass it via -c to commands that need it.

Checking the config setting adds a very small overhead, but it's
only checked once per command so should be insignificant.

This commit was supported by the NSF-funded DataLad project.
2018-02-22 14:25:32 -04:00
yarikoptic
a8b870311c Added a comment: --read-only flag? 2018-02-22 17:18:18 +00:00
Joey Hess
2d1dd79d02
response 2018-02-22 12:49:46 -04:00
Joey Hess
2e25185a9c
Remove temporary code added in 6.20160619 to prime the mergedrefs log.
Repositories that are upgraded from before that version to this
one will not break, but will just not see the benefit of the mergedrefs log
speeding things up, until one new ref gets merged in.
2018-02-22 12:31:27 -04:00
yarikoptic
5e0d594782 initial complaints about needing write permissions for info command 2018-02-20 00:02:11 +00:00
olaf
288e1dc77c Added a comment: I can reproduce 2018-02-19 01:05:06 +00:00
michalrus
5846c2f466 2018-02-17 14:43:36 +00:00
https://christian.amsuess.com/chrysn
db0d154f19 add wishlist item "creating importfeed does not work with socks proxy" 2018-02-14 14:12:14 +00:00
yarikoptic
9aaab2019e Added a comment 2018-02-10 02:48:14 +00:00
yarikoptic
ffee889364 2018-02-10 02:46:45 +00:00
achilleas.k@14be77d42a1252fab5ec9dbf4e5ea03c5833e8c8
b64bc454dd 2018-02-09 13:39:36 +00:00
achilleas.k@14be77d42a1252fab5ec9dbf4e5ea03c5833e8c8
43f7a515ec 2018-02-09 13:38:37 +00:00
achilleas.k@14be77d42a1252fab5ec9dbf4e5ea03c5833e8c8
b816cded81 2018-02-09 13:18:03 +00:00
achilleas.k@14be77d42a1252fab5ec9dbf4e5ea03c5833e8c8
0ccd3e4c61 2018-02-09 13:13:03 +00:00
Joey Hess
a77f00b3d9
response 2018-02-08 13:16:22 -04:00
Joey Hess
b49d5545b1
response 2018-02-06 13:06:44 -04:00
timotejs@7102fe834ef5514c095ceb7e09b525bafa7b1af4
0ac5812f0f Added a comment: Did' nyone make it work? 2018-02-06 08:15:06 +00:00
davclark
7da30e7a05 Added a comment: Still getting this error 2018-02-02 16:45:50 +00:00
dxtr
a06c7f4246 2018-01-31 14:08:57 +00:00
dxtr
8f3e2fa72c Fixed some formatting 2018-01-31 14:07:34 +00:00
dxtr
a7a37f8227 2018-01-31 14:06:50 +00:00
Joey Hess
13e5f22cac
close 2018-01-15 13:32:32 -04:00
mbekkema97@66b135681014f005a3a14c4011d148fcb6655f81
d57ea80fea Added a comment 2018-01-12 12:01:31 +00:00
Joey Hess
a28c541e23
add remote.<name>.annex-checkuuid
Added remote.<name>.annex-checkuuid config, which can be set to false to
disable the default checking of the uuid of remotes that point to
directories. This can be useful to avoid unncessary drive spin-ups and
automounting.

Note that the UUID check is still done before writing to the repository,
to avoid writing to the wrong repository if it got relocated. Check is
also done before checkPresent to avoid getting confused about what is in
which repo. This is effectively the same as the use of git-annex-shell
with a uuid to check that the remote repository is the expected one.
Did not bother with the check for retrieveKeyFile because it doesn't
matter if the wrong repo is used then.

This commit was sponsored by Trenton Cronholm on Patreon.
2018-01-10 14:21:18 -04:00
Joey Hess
b8d568e7f9
comment 2018-01-09 16:44:10 -04:00
Joey Hess
2b66492d6e
Improve startup time for commands that do not operate on remotes
And for tab completion, by not unnessessarily statting paths to remotes,
which used to cause eg, spin-up of removable drives.

Got rid of the remotes member of Git.Repo. This was a bit painful.

Remote.Git modifies the list of remotes as it reads their configs,
so still need a persistent list of remotes. So, put it in as
Annex.gitremotes. It's only populated by getGitRemotes, so commands
like examinekey that don't care about remotes won't do so.

This commit was sponsored by Jake Vosloo on Patreon.
2018-01-09 16:22:07 -04:00
emanuele
4c3531007b Added a comment 2018-01-09 08:46:44 +00:00
sawmke
4f9f2a1c70 2018-01-07 19:01:32 +00:00
Joey Hess
1825012e60
followup 2018-01-04 14:31:31 -04:00
emanuele
b9082156b5 Added a comment: Thanks! 2018-01-03 10:51:46 +00:00
Joey Hess
edd25f04d9
unused: Write .git/annex/unused etc files with appropriate permissions for the core.sharedRepository config.
This commit was sponsored by an anonymous bitcoin donor.
2018-01-02 16:25:27 -04:00
Joey Hess
25703e1413
finally really add back custom-setup stanza
Fourth or fifth try at this and finally found a way to make it work.

Absurd amount of busy-work forced on me by change in cabal's behavior.
Split up Utility modules that need posix stuff out of ones used by
Setup. Various other hacks around inability for Setup to use anything
that ifdefs a use of unix.

Probably lost a full day of my life to this.
This is how build systems make their users hate them. Just saying.
2017-12-31 16:36:39 -04:00
Joey Hess
fcdd9ce788
repeated addurl behavior reversion fix
addurl: When the file youtube-dl will download is already an annexed file,
don't download it again and fail to overwrite it, instead just do nothing,
like it used to when quvi was used.

This commit was sponsored by Anthony DeRobertis on Patreon.
2017-12-31 14:55:51 -04:00
Joey Hess
1f5bf73af0
Revert "git-annex.cabal: Add back custom-setup stanza, so cabal new-build works."
This reverts commit 51228c2306.

No, still doesn't work when built with cabal. It did with stack; stack
must somehow make the unix package implicitly available.

With cabal, System.Posix.Process and System.Posix.Env are both missing.
2017-12-31 14:09:41 -04:00
Joey Hess
51228c2306
git-annex.cabal: Add back custom-setup stanza, so cabal new-build works.
Seems I had all the work in past commits to make this build, at least on
linux. I'm actually surprised it does, without a unix dep, Utility.Env
still builds ok somehow despite using System.Posix.Env.

This commit was sponsored by Fernando Jimenez on Patreon.
2017-12-31 13:54:41 -04:00
Joey Hess
f9002062b0
followup and open bug 2017-12-31 12:35:52 -04:00
Yurt
6f4f9a4a47 Added a comment 2017-12-20 22:33:04 +00:00
emanuele
59a5cfe1e6 Added a comment 2017-12-19 14:19:14 +00:00
emanuele
825575de5b 2017-12-19 14:10:40 +00:00
https://christian.amsuess.com/chrysn
77c20ff833 Added a comment: Issue also affects LineageOS 2017-12-17 12:04:53 +00:00
mbekkema97@66b135681014f005a3a14c4011d148fcb6655f81
b01ec4b8fa Added a comment: I just found out you're already aware of this 2017-12-15 07:16:13 +00:00
samuel.hodgkins@1f82d70f26e5a61ac6a73b6286b2bd907cac5094
68cbe10e78 2017-12-15 03:38:53 +00:00
mbekkema97@66b135681014f005a3a14c4011d148fcb6655f81
567c231429 2017-12-15 00:44:03 +00:00
andrew
d3b3a540eb Added a comment: makes sense 2017-12-12 00:01:37 +00:00
Joey Hess
9dd67e594f
add warning: to make clear this is not an error 2017-12-11 14:28:39 -04:00
Joey Hess
a71b1f0118
fixed 2017-12-11 13:43:52 -04:00
Joey Hess
e429fa597b
reproduction 2017-12-11 13:36:50 -04:00
Joey Hess
0ef99f3578
followup and closd 2017-12-11 13:09:28 -04:00
yarikoptic
3400d1d8fa Added a comment 2017-12-11 14:40:27 +00:00
yarikoptic
ab8cf0d58a Added a comment 2017-12-11 05:27:15 +00:00
andrew
c635b92b3f 2017-12-11 03:11:28 +00:00
erics
01f78e877a Added a comment 2017-12-08 21:11:41 +00:00
Joey Hess
cfdfe4df6c
lookupkey absolute path support
lookupkey: Support being given an absolute filename to a file within the
current git repository.

This commit was supported by the NSF-funded DataLad project.
2017-12-08 15:35:02 -04:00
Joey Hess
8990afaef0
fix regression in addurl --fast caused by youtube-dl support
Similar to c6e4bc0a22 but another code
path. As well as using youtube-dl unecessarily, it used the filename it
comes up with, which while nice for youtube videos, is not right for
other files.

This means more work is done for urls that youtube-dl does support,
but is probably more efficient for other urls, since it only downloads
the first chunk of content, while youtube-dl probably downloads more.

This commit was supported by the NSF-funded DataLad project.
2017-12-08 14:51:17 -04:00
benjaminpoldrack@10c3a46d1ea5d639e3539d169d55f771a8def21a
5b98da60b1 2017-12-08 13:48:52 +00:00
https://me.yahoo.com/a/x4ddlZwKw9O9IsCHmNZz7tSJn2h0H3vX#23f03
b88bc32f97 Added a comment: additional information 2017-12-08 10:17:41 +00:00
yarikoptic
6d30744766 Added a comment 2017-12-08 02:32:16 +00:00
https://me.yahoo.com/a/x4ddlZwKw9O9IsCHmNZz7tSJn2h0H3vX#23f03
7f282a134f 2017-12-07 18:38:15 +00:00
https://me.yahoo.com/a/x4ddlZwKw9O9IsCHmNZz7tSJn2h0H3vX#23f03
e8d95ee445 2017-12-07 18:37:29 +00:00
https://me.yahoo.com/a/x4ddlZwKw9O9IsCHmNZz7tSJn2h0H3vX#23f03
6bc4852d54 2017-12-07 18:32:45 +00:00
Joey Hess
c6e4bc0a22
fix regression in addurl --file caused by youtube-dl support
Now youtubeDlCheck downloads the beginning of the url's content and
checks if it's html, only when it is does it pass it off the youtube-dl
to check if it supports it.

This means more work is done for urls that youtube-dl does support,
but is probably more efficient for other urls, since it only downloads
the first chunk of content, while youtube-dl probably downloads more.

As well as the reported bug, this also fixes behavior when an url
was added with youtube-dl, but the url content has now changed from
a html page to something else. Remote.Web.checkKey used to wrongly
succeed in that situation, since youtube-dl said sure it can download
that something else.

This commit was supported by the NSF-funded DataLad project.
2017-12-06 13:22:31 -04:00
Joey Hess
6b5e55a154
reproduction recipe 2017-12-06 12:02:19 -04:00
yarikoptic
91264858e9 2017-12-06 00:50:17 +00:00
yarikoptic
c589562131 initial whining about yt: prefix 2017-12-06 00:46:33 +00:00
yarikoptic
6c3fa431d9 Added a comment 2017-12-05 18:26:43 +00:00
yarikoptic
7187d454d3 Added a comment 2017-12-05 18:20:41 +00:00
Joey Hess
ed701667aa
fix gpg subkey support typo
initremote, enableremote: Really support gpg subkeys suffixed with an
exclamation mark, which forces gpg to use a specific subkey. (Previous try
had a bug.)

This commit was sponsored by Jake Vosloo on Patreon.
2017-12-05 13:58:53 -04:00
Joey Hess
f6d0c6de30
yet another instance of git smudge/clean interface suck 2017-12-05 13:28:07 -04:00
Joey Hess
f00770d736
Removed no longer needed dependency on yesod-default.
This commit was sponsored by Nick Daly on Patreon.
2017-12-05 13:18:25 -04:00
Joey Hess
bb1299a5f1
Merge branch 'master' of ssh://git-annex.branchable.com 2017-12-05 12:44:11 -04:00
Joey Hess
42368af8f4
comment 2017-12-05 12:43:57 -04:00
andrew
1807fb2a8a Added a comment: gcrypt, git-annex and rsync requires absolute path 2017-12-05 13:49:42 +00:00
pietroastolfi92@8933106257e5e108af6f46b584f3f10acb198f1d
34346dd563 2017-11-30 16:31:29 +00:00
https://me.yahoo.com/a/5j.FKrMpxZS.luSB.5ahyosMU6RcaYq2#74c60
f02545b482 2017-11-25 00:03:24 +00:00
olaf
b992b1eaad Added a comment: Still a problem 2017-11-23 04:34:18 +00:00
Joey Hess
53bd836484
ah, I got it 2017-11-20 14:23:16 -04:00
Joey Hess
d43c3c856e
huh? 2017-11-20 14:19:20 -04:00
quantum.analyst+git-annex@7b5254bfa3fe66bdaa852f498eba084d122744b7
6ba0127d7b 2017-11-18 04:40:06 +00:00
Yurt
0f876eccb5 2017-11-17 17:49:16 +00:00
Yurt
1eaa0e954a 2017-11-17 17:47:39 +00:00
yarikoptic
0805eee64f Added a comment: thanks, what about 'find' with the same issue? 2017-11-16 19:11:51 +00:00
Joey Hess
f5edb16729
Display progress meter when uploading a key without size information
Getting the size by statting the content file.

This commit was supported by the NSF-funded DataLad project.
2017-11-14 16:40:49 -04:00
Joey Hess
b5e1534c5c
thoughts 2017-11-14 15:43:40 -04:00
yarikoptic
2f7de67829 initial whining about 2 ssh prompts 2017-11-14 19:14:30 +00:00
Joey Hess
3b44ea01f5
update; git bug fixed in pu 2017-11-13 13:11:06 -04:00
Joey Hess
85b912377b
retitle; known bug 2017-11-09 12:00:11 -04:00
Joey Hess
8c77bbf713
remove nix section to unbreak i386-ancient build 2017-11-08 14:52:36 -04:00
Joey Hess
8f50b99c81
close already fixed bug (dup) 2017-11-07 17:09:43 -04:00
Joey Hess
8527089631
response 2017-11-07 17:06:25 -04:00
Joey Hess
c67f743ffe
Merge branch 'master' of ssh://git-annex.branchable.com 2017-11-07 17:02:28 -04:00
Joey Hess
1738c801eb
comment 2017-11-07 16:39:32 -04:00
Joey Hess
193612c97a
simplify ikiwiki docs build testing and output 2017-11-07 16:36:01 -04:00
Joey Hess
f88ff8d460
Makefile improvement for sudo make install. Thanks, Eric Siegerman 2017-11-07 16:29:58 -04:00
robert.schuetz@7942237bf71a2ae4f5d3cb047d167612b8c9e311
f1505a2af8 Added a comment 2017-11-07 20:22:05 +00:00
Joey Hess
9d129367db
Web.checkKey: Fix handling of multiple urls
When there are multiple urls for a file, still treat it as being present
in the web when some urls don't work, as long as at least one url does
work.

This is consistent with the other web methods handling of multiple urls.

This commit was sponsored by Ole-Morten Duesund on Patreon.
2017-11-07 16:15:44 -04:00
Joey Hess
c05570bd99
link to git ML post 2017-11-07 16:09:27 -04:00
Joey Hess
62ba45ae8b
followup 2017-11-07 15:57:28 -04:00
robert.schuetz@7942237bf71a2ae4f5d3cb047d167612b8c9e311
9b4d567d87 2017-11-07 19:35:18 +00:00
Joey Hess
e0084bb876
Merge branch 'master' of ssh://git-annex.branchable.com 2017-11-07 15:34:50 -04:00
Joey Hess
46254b773b
analysis
Should add a link to my git ML post when it gets through.

This commit was sponsored by Bruno BEAUFILS on Patreon.
2017-11-07 15:33:55 -04:00
webanck
54404bcd6f Added a comment: reply to comment 1 2017-11-07 19:16:09 +00:00
Joey Hess
4122d5bac3
reroduced; reopen bug report 2017-11-07 14:20:37 -04:00
Joey Hess
b64d19b2c2
respond; retitle 2017-11-07 14:05:06 -04:00
webanck
ae17c2d7af 2017-11-07 16:22:36 +00:00
webanck
4b9f3b7b97 2017-11-07 16:05:49 +00:00
webanck
c032344d98 2017-11-07 16:05:15 +00:00
webanck
834033e6a6 2017-11-07 16:03:17 +00:00
https://tribut.de/
a8e2edd41b Unchanged files are detected as modified 2017-11-05 15:59:21 +00:00
rfourquet
e2527ea17b Added a comment 2017-11-05 12:04:50 +00:00
erics
99f37bac50 2017-11-01 21:02:17 +00:00
erics
2fa72fb2cc 2017-11-01 20:59:21 +00:00
erics
ade0370775 2017-11-01 20:56:11 +00:00
Lykos153
10b6551220 grammar... 2017-11-01 15:33:58 +00:00
Lykos153
e88e70954f 2017-11-01 15:30:14 +00:00
Joey Hess
0b73e6dac5
close 2017-10-30 15:13:25 -04:00
yarikoptic
46b6b86b08 Added a comment: got it 2017-10-30 18:33:20 +00:00
Joey Hess
325c40afef
followup 2017-10-30 14:23:33 -04:00
Lykos153
856ed7ef76 Added a comment 2017-10-30 18:18:56 +00:00
Joey Hess
5d99094313
comment 2017-10-30 13:15:09 -04:00
Joey Hess
e2017b8adb
followup; close 2017-10-30 13:10:07 -04:00
Joey Hess
68a9c867be
Fix exporting of non-annexed files to external special remotes.
Actual problem is the keyName was set to "Ref \"sha\"", which led to
this follow-on failure since it contained a space.

The bad data would also get into the export database when exporting to a
non-external special remote. Looking briefly at that, I don't think the bad
data will lead to anything more than a re-upload of the file content
now that the problem has been fixed.

This commit was sponsored by Peter Hogg on Patreon.
2017-10-30 12:47:13 -04:00
Joey Hess
0743ee1bbc
managed to repro 2017-10-30 12:26:49 -04:00
Joey Hess
fb9b4724ba
moreinfo 2017-10-30 12:19:33 -04:00
Joey Hess
edafe8621e
comment 2017-10-30 11:51:22 -04:00
Lykos153
58179ad49a 2017-10-29 17:57:50 +00:00
ynikitenko
1f5d4766d6 Added a comment: thanks 2017-10-29 16:28:34 +00:00
ynikitenko
769c1d3d37 Added a comment: not so slow 2017-10-27 12:29:12 +00:00
Joey Hess
0ae2ac282e
fix gitAnnexLink to not be absolute on Windows
Windows: Fix reversion that caused the path used to link to annexed
content include the drive letter and full path, rather than being
relative. (`git annex fix` will fix up after this problem).

I've not identified the commit that brought the reversion (probably it
happened this spring when I was removing MisingH and last touched
Utility.Path). Likely commit 18b9a4b8024115db67ae309fdaf54e1553037529?

The problem is that relPathDirToFile got called two paths that had the
slashes different ways around. Since takeDrive includes the first slash,
this made two paths on the same drive seem different and it bailed.

(ifdefs around this to avoid doing extra work on non-windows)

This commit was sponsored by Jack Hill on Patreon.
2017-10-25 19:36:29 -04:00
Joey Hess
4a72b17bd0
bug 2017-10-25 15:57:08 -04:00
Joey Hess
aa0388e37c
reply 2017-10-25 15:42:15 -04:00
Joey Hess
e8eacf96d5
Add day to metadata when annex.genmetadata is enabled.
Thanks, Sean T Parsons
2017-10-25 15:11:38 -04:00