Differences From:
File
src/checkin.c
part of check-in
[371dd6574c]
- Fix the revert command so that it works from subdirectories. Other
minor comment and help-text changes.
by
drh on
2007-12-04 01:26:21.
Also file
src/checkin.c
part of check-in
[d0305b305a]
- Merged mainline into my branch to get the newest application.
by
aku on
2007-12-05 08:07:46.
[view]
To:
File
src/checkin.c
part of check-in
[e2a42f7a68]
- Error message on "commit" or "user default" if the user does not exist.
by
drh on
2008-01-29 01:11:27.
[view]
@@ -365,8 +365,15 @@
fossil_fatal("cannot do a partial commit of a merge");
}
user_select();
+ /*
+ ** Check that the user exists.
+ */
+ if( !db_exists("SELECT 1 FROM user WHERE login=%Q", g.zLogin) ){
+ fossil_fatal("no such user: %s", g.zLogin);
+ }
+
db_begin_transaction();
rc = unsaved_changes();
if( rc==0 && !isAMerge && !forceFlag ){
fossil_panic("nothing has changed");