Changeset 509 for trunk/confmanlib.sh.in


Ignore:
Timestamp:
12/05/2009 19:52:01 (2 years ago)
Author:
ccowart
Message:

Allowing username overriding for repository access.

Fixes #115

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/confmanlib.sh.in

    r507 r509  
    4040function conf_repo_uri { 
    4141        local proto="${REPO_PROTOCOL%:/*}" 
    42         local uri 
     42        local uri user 
    4343 
    4444    # When we're running in export mode and the user has configured 
     
    6969    done 
    7070 
     71    user=${REPO_REMOTE_USER:+${REPO_REMOTE_USER}@} 
     72 
    7173        case $proto in 
    7274                file) 
     
    7476                        ;; 
    7577                *) 
    76                         uri="${REPO_PROTOCOL}${REPO_HOSTNAME}${REPO_PATH}" 
     78                        uri="${REPO_PROTOCOL}${user}${REPO_HOSTNAME}${REPO_PATH}" 
    7779                        ;; 
    7880        esac 
Note: See TracChangeset for help on using the changeset viewer.