Permalink
Browse files

Garbage collect quietly

  • Loading branch information...
1 parent 832ad6c commit 43bcda5ba4e791f9c8500e7aca7481327f44c696 @dabrahams dabrahams committed Jan 15, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/gitutil.cpp
View
@@ -669,12 +669,13 @@ void Repository::write_branches()
void Repository::garbage_collect()
{
+ log.info("Garbage Collecting");
if (repo_name.empty()) {
std::system("git config gc.autopacklimit 0");
std::system("git config loose.compression 0");
log.newline();
- std::system("git gc");
+ std::system("git gc --quiet");
} else {
std::system((std::string("git --git-dir=\"") + repo_name +
"\" config gc.autopacklimit 0").c_str());
@@ -683,7 +684,7 @@ void Repository::garbage_collect()
log.newline();
std::system((std::string("git --git-dir=\"") + repo_name +
- "\" gc").c_str());
+ "\" gc --quiet").c_str());
}
}

0 comments on commit 43bcda5

Please sign in to comment.