Skip to content

Initial attempt at #42#44

Open
shardulc wants to merge 3 commits intoapertium:masterfrom
shardulc:manual-sync-depth-42
Open

Initial attempt at #42#44
shardulc wants to merge 3 commits intoapertium:masterfrom
shardulc:manual-sync-depth-42

Conversation

@shardulc
Copy link
Member

No description provided.

sync.py Outdated
subprocess.check_call(shlex.split('git clone --depth 1 git@github.com:{}/{}.git'.format(ORGANIZATION, self.name)), cwd=self.clone_dir)
subprocess.check_call(shlex.split('git clone --depth {} git@github.com:{}/{}.git'.format(self.sync_depth, ORGANIZATION, self.name)), cwd=self.clone_dir)
if init_submodules and self._has_submodules():
self.check_call(shlex.split('git submodule update --depth 1 --init --jobs 8'))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the same depth apply to this? Should we have a different parameter?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same depth. There shouldn't be any need for a separate one.

@shardulc
Copy link
Member Author

ref. #42. Also, this is completely untested.

Copy link
Member

@sushain97 sushain97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good aside from the minor nit. Should indeed be tested :)

sync.py Outdated
self.name = name
self.submodules = submodules
self.author = author
self.sync_depth = sync_depth
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind changing this to just depth? The sync prefix inside the sync class is a bit redundant.

@shardulc
Copy link
Member Author

I can test this on mock-apertium. What depths should I test with (i.e., what is the problem that this is supposed to solve)?

@sushain97
Copy link
Member

sushain97 commented Mar 30, 2018

#42 (comment)

I think the problem is when things get into an inconsistent state and --depth 1 is too shallow to fix them/causes errors but I can't remember the exact problem to save my life...

@shardulc
Copy link
Member Author

@sushain97 Ping about testing this. mock-apertium has been deleted?

@sushain97
Copy link
Member

sushain97 commented Apr 12, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants