Skip to content

Commit 6685120

Browse files
committed
Merge pull request #1654 from deis/feat/builder/auto-run-git-gc
feat(builder): automatically run `git gc` on deploy
2 parents 62de555 + 8bea984 commit 6685120

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

builder/templates/builder

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ if __name__ == '__main__':
161161
else:
162162
print(' No domains found for this application')
163163
print('\n To learn more, use `deis help` or visit http://deis.io\n')
164+
p = subprocess.Popen("git gc", shell=True, cwd=repo_dir)
165+
p.wait()
164166
except Exception as e:
165167
print(e.message)
166168
sys.exit(1)

0 commit comments

Comments
 (0)