Skip to content

Commit 8f8a2bf

Browse files
committed
Only check the age of FETCH_HEAD if it exists
1 parent 2a2a5f2 commit 8f8a2bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fabfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ def _known_hosts_outdated(local_filename, remote_filename):
199199
return local_checksum != remote_checksum
200200

201201
def _check_repo_age():
202+
if not os.path.exists(REPO_OUTDATED_FILE):
203+
return
202204
if time.time() - os.path.getmtime(REPO_OUTDATED_FILE) > REPO_OUTDATED_TIME:
203205
warn('Your fabric-scripts may be out-of-date. Please `git pull` the repo')
204206

0 commit comments

Comments
 (0)