Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
bundle create: keep symbolic refs' names instead of resolving them
[gitweb.git]
/
builtin-revert.c
diff --git
a/builtin-revert.c
b/builtin-revert.c
index eafafbc333e784aa2c49ee9d360077cb212797c6..94e77771d24decc60c50adf0cd3ab272ce36d3f2 100644
(file)
--- a/
builtin-revert.c
+++ b/
builtin-revert.c
@@
-264,7
+264,7
@@
static int revert_or_cherry_pick(int argc, const char **argv)
if (get_sha1("HEAD", head))
die ("You do not have a valid HEAD");
wt_status_prepare(&s);
- if (s.commitable
|| s.workdir_dirty
)
+ if (s.commitable)
die ("Dirty index: cannot %s", me);
discard_cache();
}