Skip to content

Commit eb3173e

Browse files
committed
Fixed error with missing os import
1 parent 242725a commit eb3173e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gitfetch/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ def main() -> int:
201201

202202
# Check for --local flag
203203
if args.local:
204+
import os
204205
if not os.path.exists('.git'):
205206
print("Error: --local requires .git folder", file=sys.stderr)
206207
return 1

0 commit comments

Comments
 (0)