Skip to content

Commit 8bea984

Browse files
author
Sam Dodrill
committed
feat(builder): automatically run git gc on deploy
Ref #987 This should be replaced by a cronjob after we switch to the new init, but this will do for now.
1 parent e0292d7 commit 8bea984

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)