Skip to content

Commit

Permalink
Update init example
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Feb 5, 2021
1 parent 67cc97f commit df0d406
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gitman/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def init(*, force: bool = False):
else:
config = Config()
source = Source(
type='git',
name="sample_dependency",
repo="https://github.com/githubtraining/hellogitworld",
name="sample_dependency",
rev="master",
)
config.sources.append(source)
source = source.lock(rev="ebbbf773431ba07510251bb03f9525c7bab2b13a")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def it_creates_a_new_config_file(tmpdir):
sources:
- repo: https://github.com/githubtraining/hellogitworld
name: sample_dependency
rev: main
rev: master
type: git
sparse_paths:
-
Expand Down

0 comments on commit df0d406

Please sign in to comment.