summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/deploystatic/deploystatic.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/deploystatic/deploystatic.py b/tools/deploystatic/deploystatic.py
index 557f7f02..31654654 100755
--- a/tools/deploystatic/deploystatic.py
+++ b/tools/deploystatic/deploystatic.py
@@ -314,6 +314,10 @@ if __name__ == "__main__":
print("Destination directory does not exist!")
sys.exit(1)
+ if os.path.exists(os.path.join(args.destpath, '.git')):
+ print("Destination directory seems to be version controlled!")
+ sys.exit(1)
+
if args.branch:
s = subprocess.Popen(['/usr/bin/git', 'archive', '--format=tar', args.branch],
stdout=subprocess.PIPE,