diff options
author | Joey Hess <joey@kitenet.net> | 2013-07-31 12:19:55 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-07-31 12:19:55 -0400 |
commit | 880cd680914db27759fdfe60bfcd6d4cd47a3b23 (patch) | |
tree | 29e09bb4340734d91b45dd9e05be4f1ce63d997a /doc/special_remotes | |
parent | 79e8517738aca8e841e7cc0977d32a64a538bf21 (diff) | |
parent | f65ddaafe3f46dfe5ac8bd49e8429adc55958204 (diff) |
Merge branch 'master' of ssh://git-annex.branchable.com
Diffstat (limited to 'doc/special_remotes')
-rw-r--r-- | doc/special_remotes/hook/comment_4_35d79b5ffa5a19056efcdc805070bc4b._comment | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/special_remotes/hook/comment_4_35d79b5ffa5a19056efcdc805070bc4b._comment b/doc/special_remotes/hook/comment_4_35d79b5ffa5a19056efcdc805070bc4b._comment new file mode 100644 index 000000000..988d17def --- /dev/null +++ b/doc/special_remotes/hook/comment_4_35d79b5ffa5a19056efcdc805070bc4b._comment @@ -0,0 +1,18 @@ +[[!comment format=mdwn + username="https://www.google.com/accounts/o8/id?id=AItOawnWvnTWY6LrcPB4BzYEBn5mRTpNhg5EtEg" + nickname="Bence" + subject="checkpresent success and failure" + date="2013-07-31T13:06:21Z" + content=""" +What value should be returned in the \"checkpresent-hook\" to signal that the given file does not exist in the given backend? + +Should the called hook process return an exit code less or greater then zero? In this case the following is displayed: +>(user error (sh [\"-c\",\"name_of_the_process\"] exited 1)) failed + +This tells that the process failed (no internet connection or something that prevents the process from doing its job) and not that result is false, which would mean the file/entry does not exist in the given backend. +If the return code is zero the file is treated as existing file/entry (no matter what I write to stderr). + +Also I think, the \"checkpresent\" block misses the ending ;; in the example. + +Here is my work-in-progress hook: https://gist.github.com/parhuzamos/31bf4516eea434e0d248 +"""]] |