aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-07-12 12:59:00 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-07-12 12:59:00 +0200
commitbd62290c23fa15181e8af75c5055e104900f8532 (patch)
treefc98dd724b15d8b924a19ec693aed74af6e2a5f3 /src/libexpr
parent0802e006f27acadc32c43ba02313709dfc51f940 (diff)
fetchGit: Warn about dirty trees
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/primops/fetchGit.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/primops/fetchGit.cc b/src/libexpr/primops/fetchGit.cc
index 10cd2470a..940cf3022 100644
--- a/src/libexpr/primops/fetchGit.cc
+++ b/src/libexpr/primops/fetchGit.cc
@@ -46,6 +46,8 @@ GitInfo exportGit(ref<Store> store, std::string uri,
/* This is an unclean working tree. So copy all tracked
files. */
+ warn("Git tree '%s' is dirty", uri);
+
GitInfo gitInfo;
gitInfo.ref = "HEAD";