Fossil SCM

fix for ticket [8832434e32], wrong args for checkoutable()

bch 2009-04-19 06:14 UTC fix artifact checkout
Commit ab6a293182e1962592fcecb9914c8bcedc889b6c
1 file changed +1 -1
+1 -1
--- src/checkout.c
+++ src/checkout.c
@@ -187,11 +187,11 @@
187187
noWrite = find_option("dontwrite",0,0)!=0;
188188
if( g.argc!=3 ) usage("?--force? VERSION");
189189
if( !forceFlag && unsaved_changes()==1 ){
190190
fossil_fatal("there are unsaved changes in the current checkout");
191191
}
192
- if(!checkoutable()){
192
+ if(!checkoutable(g.argv[2])){
193193
fossil_fatal("the VERSION you requested is not a checkout-able artifact");
194194
}
195195
if( forceFlag ){
196196
db_multi_exec("DELETE FROM vfile");
197197
prior = 0;
198198
--- src/checkout.c
+++ src/checkout.c
@@ -187,11 +187,11 @@
187 noWrite = find_option("dontwrite",0,0)!=0;
188 if( g.argc!=3 ) usage("?--force? VERSION");
189 if( !forceFlag && unsaved_changes()==1 ){
190 fossil_fatal("there are unsaved changes in the current checkout");
191 }
192 if(!checkoutable()){
193 fossil_fatal("the VERSION you requested is not a checkout-able artifact");
194 }
195 if( forceFlag ){
196 db_multi_exec("DELETE FROM vfile");
197 prior = 0;
198
--- src/checkout.c
+++ src/checkout.c
@@ -187,11 +187,11 @@
187 noWrite = find_option("dontwrite",0,0)!=0;
188 if( g.argc!=3 ) usage("?--force? VERSION");
189 if( !forceFlag && unsaved_changes()==1 ){
190 fossil_fatal("there are unsaved changes in the current checkout");
191 }
192 if(!checkoutable(g.argv[2])){
193 fossil_fatal("the VERSION you requested is not a checkout-able artifact");
194 }
195 if( forceFlag ){
196 db_multi_exec("DELETE FROM vfile");
197 prior = 0;
198

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button