Hello,

I'd like to have a consistent username across all repositories that
I'm working with, but without modifying USER or USERNAME environment
variables. These variables are used by other applications, so
modifying them is not a good idea. Would it be possible to introduce
an additional check for "FOSSIL_USER" environment variable, which
would override the values in USER and USERNAME? The patch is below.

- Max

--- src/user.c.orig     2012-12-06 13:35:06.000000000 -0500
+++ src/user.c  2012-12-06 13:35:16.000000000 -0500
@@ -328,6 +328,8 @@

   if( attempt_user(db_get("default-user", 0)) ) return;

+  if( attempt_user(fossil_getenv("FOSSIL_USER")) ) return;
+
   if( attempt_user(fossil_getenv("USER")) ) return;

   if( attempt_user(fossil_getenv("USERNAME")) ) return;
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to