There is a patch to enable credentials on the command line - I have used
it, but latterly I have adopted another approach so this might not work
against the current sources!
I can't remember the original author; it may have been me or I may have
borrowed this - 2008 is a long time ago in my life :-)
--- src-old/options.h 2008-06-11 19:10:35.000000000 +0200
+++ src/options.h 2008-08-07 10:52:48.000000000 +0200
@@ -86,6 +86,11 @@
/** The author for commit.
* See \ref o_author. */
OPT__AUTHOR,
+
+ /** Set a global password, for anonymous co/ci.
+ * See \ref o_passwd. */
+ OPT__PASSWD,
+
/** Whether commits without changes should be done.
* See \ref o_empty_commit. */
OPT__EMPTY_COMMIT,
--- src-old/options.c 2008-06-14 19:54:57.000000000 +0200
+++ src/options.c 2008-08-07 11:02:36.000000000 +0200
@@ -195,7 +195,9 @@
[OPT__AUTHOR] = {
.name="author", .cp_val="", .parse=opt___store_env_noempty,
},
-
+ [OPT__PASSWD] = {
+ .name="password", .cp_val="", .parse=opt___store_string,
+ },
/* I thought about using opt___normalized_path() for these two; but that
* would be a change in behaviour. */
[OPT__WAA_PATH] = {
--- src-old/racallback.c 2008-08-07 10:42:34.000000000 +0200
+++ src/racallback.c 2008-08-07 10:16:29.000000000 +0200
@@ -55,7 +55,8 @@
!(isatty(STDIN_FILENO) && isatty(STDOUT_FILENO)),
opt__get_int(OPT__AUTHOR) ?
opt__get_string(OPT__AUTHOR) : NULL,
- NULL, /* Password */
+ opt__get_int(OPT__PASSWD) ?
+ opt__get_string(OPT__PASSWD) : NULL, /* Password */
NULL, /* Config dir */
0, /* no_auth_cache */
cfg,
--- src-old/dox/options.dox 2008-06-13 16:43:22.000000000 +0200
+++ src/dox/options.dox 2008-08-07 11:19:02.000000000 +0200
@@ -355,6 +355,14 @@
\endcode
that would override the config values.
+\section o_passwd Password
+
+In some scenarios like ssl-client key authorisation it is more
comfortable to have anonymous logins
+for committing checkout. With password option it is possible to define
a global password.
+
+\code
+ password=""
+\endcode
\section o_commit_to Destination URL for commit
On 21/03/11 09:00, steve caster wrote:
> Dear all
>
> I am running an automated backup of several GB's of data. I like fsvs
> a lot but as I need to enter a username and password I use "expect" to
> fill these values. Now I was wondering, as the only reason for doing
> this, is the username and password, if there is an option to add the
> user/pass directly as a command line option or another method? I am
> running this from cron job.
>
> Secondly, is there someone who made a built to run on windows? Yes I
> know tortoise exists, but fsvs has the advantage that it create the
> filelist (A/D/?) automatically
>
> Best regards
>
> Steve
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> ------------------------------------------------------
> http://fsvs.tigris.org/ds/viewMessage.do?dsForumId=3928&dsMessageId=2712855
>
> To unsubscribe from this discussion, e-mail:
> [[email protected]].
>
------------------------------------------------------
http://fsvs.tigris.org/ds/viewMessage.do?dsForumId=3928&dsMessageId=2724999
To unsubscribe from this discussion, e-mail:
[[email protected]].