-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BF+ENH: fixes on the way to get --existing=reconfigure functioning as it should #774
Conversation
…ay - fixed for find_files
…ting, and should not call annex init on remote end in such a case
Codecov Report
@@ Coverage Diff @@
## master #774 +/- ##
=========================================
- Coverage 89.07% 87.1% -1.98%
=========================================
Files 214 216 +2
Lines 19200 19415 +215
=========================================
- Hits 17102 16911 -191
- Misses 2098 2504 +406
Continue to review full report at Codecov.
|
…po + check no error log msgs while creating
@debanjum please review, and test with |
… get some error log msgs so disable that test on those systems
LGTM, feel free to merge. Wasn't clear to me whether @debanjum already approved. |
Well need to fix-up the test a bit first |
@@ -297,6 +302,11 @@ def __call__(sshurl, target=None, target_dir=None, | |||
lgr.error("Failed to add json creation command to post update hook.\n" | |||
"Error: %s" % exc_str(e)) | |||
|
|||
if not only_reconfigure: | |||
# Initialize annex repo on remote copy if current_dataset is an AnnexRepo | |||
if isinstance(dataset.repo, AnnexRepo): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be datasets[current_dataset].repo
instead of dataset.repo
.
Also no need to pass datasets[current_dataset]
to create_postupdate_hook
function now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Fri, 09 Sep 2016, Debanjum wrote:
In datalad/distribution/create_publication_target_sshwebserver.py:
@@ -297,6 +302,11 @@ def call(sshurl, target=None, target_dir=None,
lgr.error("Failed to add json creation command to post update hook.\n"
"Error: %s" % exc_str(e))
if not only_reconfigure:
# Initialize annex repo on remote copy if current_dataset is an AnnexRepo
if isinstance(dataset.repo, AnnexRepo):
this should be datasets[current_dataset].repo instead of dataset.repo
great catch! thanks!
Can't trigger |
On Fri, 09 Sep 2016, Debanjum wrote:
ok -- now it is available for you as well. but again, for testing we |
I am confused with codecov report -- it looks like previous tests somehow did run s3 and some other downloading related tests and then now they didn't... the same situation reported in other PRs so I don't think it is anything to do with us -- might try to figure it out some time. meanwhile merging this one |
it is never enough of tests, but new ones revealing bugs are nice ;-)