lib/braid/commands/remove.rb in dreamcat4-braid-0.53 vs lib/braid/commands/remove.rb in dreamcat4-braid-0.531
- old
+ new
@@ -12,10 +12,11 @@
if mirror.type == "git-clone"
gitclone.remove_gitignore(mirror.path)
FileUtils.rm_rf(mirror.path)
config.remove(mirror)
add_config_file
+ commit_message = "Removed clone repository '#{mirror.path}'"
else
git.rm_r(mirror.path)
config.remove(mirror)
add_config_file
@@ -26,12 +27,12 @@
msg "Removed remote '#{mirror.path}'" if verbose?
git.remote_rm mirror.remote
else
msg "Remote '#{mirror.remote}' not found, nothing to cleanup" if verbose?
end
+ commit_message = "Removed mirror '#{mirror.path}'"
end
- commit_message = "Removed mirror '#{mirror.path}'"
git.commit(commit_message)
msg commit_message
end
end
end