Skip to content

Conversation

@skshetry
Copy link
Collaborator

@skshetry skshetry commented Nov 26, 2021

@skshetry skshetry marked this pull request as draft November 29, 2021 04:12
return GitFileSystem(scm=self, rev=rev)

@classmethod
def init(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I implemented init and added tests for all backends.

pass
raise NoGitBackendError("init")

def add_commit(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We don't have scm_gen, so I added this add_commit to simplify tests. It's questionable, but scmrepo should also aim to provide higher-level APIs than underlying backends.

defaultBranch=master
"""
(home_dir / ".gitconfig").write_bytes(contents)
pygit2.settings.search_path[pygit2.GIT_CONFIG_LEVEL_GLOBAL] = str(home_dir)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Seems like pygit2 does not use the monkeypatched environment variable, so we have to set manually.

@skshetry skshetry marked this pull request as ready for review December 1, 2021 04:40
@skshetry skshetry self-assigned this Dec 1, 2021
@skshetry skshetry added the wontfix This will not be worked on label Dec 1, 2021
@skshetry skshetry changed the title [WIP] add tests add tests Dec 1, 2021
@skshetry skshetry changed the title add tests add tests - part 1 Dec 1, 2021
@skshetry skshetry removed the wontfix This will not be worked on label Dec 1, 2021
@skshetry skshetry merged commit 8843079 into main Dec 2, 2021
@skshetry skshetry deleted the add-tests branch December 2, 2021 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants