Skip to content

Commit

Permalink
Merge 2894165 into 0338233
Browse files Browse the repository at this point in the history
  • Loading branch information
alichtman authored Mar 29, 2020
2 parents 0338233 + 2894165 commit d51ed41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions shallow_backup/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
from .prompts import *
from .reinstall import *
from .git_wrapper import *
from .utils import (
mkdir_warn_overwrite, destroy_backup_dir, expand_to_abs_path,
new_dir_is_valid)
from .utils import (mkdir_warn_overwrite, destroy_backup_dir,
expand_to_abs_path, new_dir_is_valid)
from .config import *
from .upgrade import upgrade_from_pre_v3

Expand Down
2 changes: 2 additions & 0 deletions shallow_backup/git_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from shutil import move
from .printing import *
from .config import get_config
from .utils import safe_mkdir

#########
# GLOBALS
Expand Down Expand Up @@ -44,6 +45,7 @@ def create_gitignore(dir_path, key):
Handles backwards compatibility for the default-gitignore -> root-gitignore
change and the introduction of the dotfiles-gitignore key in v4.0.
"""
safe_mkdir(dir_path)
gitignore_path = os.path.join(dir_path, ".gitignore")
print_yellow_bold(f"Updating .gitignore file at {gitignore_path} with config from {key}")
try:
Expand Down

0 comments on commit d51ed41

Please sign in to comment.