Fossil SCM

If the password failed prompt is hit 3 types, treat it as an error. This causes clone to delete its newly-created copy on error, instead of leaving an empty (but apparently otherwise valid) repo db file.

stephan 2014-10-04 19:18 trunk
Commit 334d7744021dba7be0a34d88aacb32a9a4860291
1 file changed +2
+2
--- src/xfer.c
+++ src/xfer.c
@@ -1860,10 +1860,12 @@
18601860
g.url.flags |= URL_PROMPT_PW;
18611861
g.url.flags &= ~URL_PROMPTED;
18621862
url_prompt_for_password();
18631863
url_remember();
18641864
}
1865
+ }else{
1866
+ nErr++;
18651867
}
18661868
}else{
18671869
blob_appendf(&xfer.err, "server says: %s\n", zMsg);
18681870
nErr++;
18691871
}
18701872
--- src/xfer.c
+++ src/xfer.c
@@ -1860,10 +1860,12 @@
1860 g.url.flags |= URL_PROMPT_PW;
1861 g.url.flags &= ~URL_PROMPTED;
1862 url_prompt_for_password();
1863 url_remember();
1864 }
 
 
1865 }
1866 }else{
1867 blob_appendf(&xfer.err, "server says: %s\n", zMsg);
1868 nErr++;
1869 }
1870
--- src/xfer.c
+++ src/xfer.c
@@ -1860,10 +1860,12 @@
1860 g.url.flags |= URL_PROMPT_PW;
1861 g.url.flags &= ~URL_PROMPTED;
1862 url_prompt_for_password();
1863 url_remember();
1864 }
1865 }else{
1866 nErr++;
1867 }
1868 }else{
1869 blob_appendf(&xfer.err, "server says: %s\n", zMsg);
1870 nErr++;
1871 }
1872

Keyboard Shortcuts

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