-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move git folder on path change #99
Move git folder on path change #99
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, with a few minor changes.
shallow_backup.py
Outdated
print(Fore.BLUE + "Moving git repo to new destination" + Style.RESET_ALL) | ||
except FileNotFoundError as e: | ||
if not made_new_config: | ||
print(Fore.RED + Style.NORMAL + "Could not detect {}... will initialize".format(e.filename) + Style.RESET_ALL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should remove this print statement.
shallow_backup.py
Outdated
try: | ||
shutil.move(git_dir, new_path) | ||
shutil.move(git_ignore_file, new_path) | ||
print(Fore.BLUE + "Moving git repo to new destination" + Style.RESET_ALL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print(Fore.BLUE + "Moving git repo to new destination" + Style.RESET_ALL) | |
print(Fore.BLUE + Style.BRIGHT + "Moving git repo to new destination..." + Style.RESET_ALL) |
Progress on #89 |
Great work, again. Merging this in. |
Copy the .git folder and .gitignore file to a new path when creating a new destination path for you backups.