Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Make builtin-tag.c use parse_options.
[gitweb.git]
/
builtin-revert.c
diff --git
a/builtin-revert.c
b/builtin-revert.c
index afc28845f211a8a575baee00f73354ce91ea5a8d..365b330f9e1f2989683611077d260fa49abcb889 100644
(file)
--- a/
builtin-revert.c
+++ b/
builtin-revert.c
@@
-258,7
+258,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();
}