Fossil SCM
fix for ticket [8832434e32], wrong args for checkoutable()
Commit
ab6a293182e1962592fcecb9914c8bcedc889b6c
Parent
4fff36610997f7f…
1 file changed
+1
-1
+1
-1
| --- src/checkout.c | ||
| +++ src/checkout.c | ||
| @@ -187,11 +187,11 @@ | ||
| 187 | 187 | noWrite = find_option("dontwrite",0,0)!=0; |
| 188 | 188 | if( g.argc!=3 ) usage("?--force? VERSION"); |
| 189 | 189 | if( !forceFlag && unsaved_changes()==1 ){ |
| 190 | 190 | fossil_fatal("there are unsaved changes in the current checkout"); |
| 191 | 191 | } |
| 192 | - if(!checkoutable()){ | |
| 192 | + if(!checkoutable(g.argv[2])){ | |
| 193 | 193 | fossil_fatal("the VERSION you requested is not a checkout-able artifact"); |
| 194 | 194 | } |
| 195 | 195 | if( forceFlag ){ |
| 196 | 196 | db_multi_exec("DELETE FROM vfile"); |
| 197 | 197 | prior = 0; |
| 198 | 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()){ |
| 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 |