Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 1 insertions, 1 deletions
-rwxr-xr-xcsg2
diff --git a/csg b/csg
index 7e33c18..71aa5b1 100755
--- a/csg
+++ b/csg
@@ -128,7 +128,7 @@ endTimer() {
### Stage 0
### Create timestamps.txt file, if necessary
-if [ -n "$CSG_TIMESTAMP_FILE" ] && isCommand 'git'
+if [ -n "$CSG_TIMESTAMP_FILE" ] && isCommand 'git' && [ -d '.git' ]
then
timestamps_writeDates() {
while read -r file