| Ticket UUID: | 6e81abf24ded94bc749494a68a0a2fc2dcd81ba9 | ||
| Title: | -A option is not observed when cloning local files | ||
| Status: | Closed | Type: | Code_Defect |
| Severity: | Important | Priority: | |
| Subsystem: | Resolution: | Open | |
| Last Modified: | 2011-07-20 23:28:43 | ||
| Version Found In: | 20b2767f46a79e845c319bd7aadec34d84ff9bca | ||
| Description & Comments: | |||
When cloning a local file, the -A option is not observed.
MJanssen@JUNO ~/Documents/Projects/fossil
$ fossil new test.fossil
project-id: 6fd8e84a448395e2128c376fa00b6528bf27310c
server-id: eb0f9e8df50588841650dae2ca601d6a671ab378
admin-user: MJanssen (initial password is "2948e5")
MJanssen@JUNO ~/Documents/Projects/fossil
$ fossil clone -A admin test.fossil test2.fossil
Repository cloned into test2.fossil
Rebuilding repository meta-data...
100.0% complete...
project-id: 6fd8e84a448395e2128c376fa00b6528bf27310c
server-id: d33bccda11a1a8694943685a9bcfda32c464e089
admin-user: MJanssen (password is "2948e5")
MJanssen@JUNO ~/Documents/Projects/fossil
$ fossil clone -A admin http://xxxx test3.fossil
Bytes Cards Artifacts Deltas
Sent: 53 1 0 0
Received: 2637198 854 271 155
Total network traffic: 230 bytes sent, 2636428 bytes received
Rebuilding repository meta-data...
100.0% complete...
project-id: 1cb7c1ee6fbcd866a6fd2bf389a18e972b5b4fd5
server-id: 8c590369091c4dd8dd91deab6fe2b77be76a7c49
admin-user: admin (password is "ff9717")
mjanssen added on 2011-02-03 22:47:27 UTC:
--- src\clone.c
+++ src\clone.c
@@ -60,10 +60,11 @@
if( g.urlIsFile ){
file_copy(g.urlName, g.argv[3]);
db_close(1);
db_open_repository(g.argv[3]);
db_record_repository_filename(g.argv[3]);
+ db_initial_setup(0, zDefaultUser, 0);
db_multi_exec(
"REPLACE INTO config(name,value)"
" VALUES('server-code', lower(hex(randomblob(20))));"
"REPLACE INTO config(name,value)"
" VALUES('last-sync-url', '%q');",
anonymous claiming to be mjanssen added on 2011-07-20 23:28:43 UTC: | |||