summaryrefslogtreecommitdiff
path: root/doc/special_remotes/hook
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawnWvnTWY6LrcPB4BzYEBn5mRTpNhg5EtEg <Bence@web>2013-07-31 13:06:21 +0000
committerGravatar admin <admin@branchable.com>2013-07-31 13:06:21 +0000
commit3a104965e07593b9dfd536337286a32d3d108456 (patch)
treeddce0d9d5f210e419a187c7fc51364cdbc9d082d /doc/special_remotes/hook
parent73f79747d0b8b80fe896eb9bea3e532603b7c5de (diff)
Added a comment: checkpresent success and failure
Diffstat (limited to 'doc/special_remotes/hook')
-rw-r--r--doc/special_remotes/hook/comment_4_35d79b5ffa5a19056efcdc805070bc4b._comment18
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
+"""]]