-
-
Notifications
You must be signed in to change notification settings - Fork 954
Git Clone to not empty directory #1496
-
Hello,
Thanks for this package!
Instead of a traceback resulting, how would I notify the user for a non-empty directory when cloning a repo using the package? Or would I just do better to check the directory first without gitpython?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions
Or would I just do better to check the directory first without gitpython?
It should be possible to catch the exception as well if it's unique enough. Both will work, none is optimal, but that's something we'd have to live with.
Replies: 1 comment 1 reply
-
Or would I just do better to check the directory first without gitpython?
It should be possible to catch the exception as well if it's unique enough. Both will work, none is optimal, but that's something we'd have to live with.
Beta Was this translation helpful? Give feedback.
All reactions
-
I approached it by checking if the directory existed before I handed off to GitPython.
Thanks!
Beta Was this translation helpful? Give feedback.