Skip to content

Commit f06bcaa

Browse files
committed
improve code quality
1 parent 750a85c commit f06bcaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hands_on/first_commit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
from exercise_utils.cli import run_command
33
from exercise_utils.file import create_or_update_file
4-
from exercise_utils.git import add
4+
from exercise_utils.git import add, init
55

66
__requires_git__ = True
77
__requires_github__ = False
@@ -10,7 +10,7 @@
1010
def download(verbose: bool):
1111
os.makedirs("things")
1212
os.chdir("things")
13-
run_command(["git", "init", "--initial-branch=main"], verbose)
13+
init(verbose)
1414
create_or_update_file(
1515
"fruits.txt",
1616
"""

0 commit comments

Comments
 (0)