summaryrefslogtreecommitdiff
path: root/plugins/rsync.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/rsync.lua')
-rw-r--r--plugins/rsync.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/rsync.lua b/plugins/rsync.lua
index 310fe59..8f8c8da 100644
--- a/plugins/rsync.lua
+++ b/plugins/rsync.lua
@@ -39,9 +39,10 @@ local function rsync_detect_repo(config, cmdline)
-- Basically, while there's still something to the repopath
-- and we've not yet found a repo, strip an element and try again...
- while not repo and repopath ~= ""do
+ while (not repo or repo.is_nascent) and repopath ~= ""do
+ gitano.log.error("Trying " .. repopath)
repo, msg = gitano.repository.find(config, repopath)
- if not repo then
+ if not repo or repo.is_nascent then
repopath = repopath:match("^(.*)/[^/]*$") or ""
end
end