Patch credentials into the git paths when verifying repositories.

Review Request #7356 — Created May 30, 2015 and submitted

Information

Review Board
release-2.0.x
a0ee8c0...

Reviewers

If an http(s)-based git repository needs credentials to access, but the user
doesn't want to put the credentials into the URL, it's not possible to add it.
The problem is that even though the repository isn't used to access files
(since we use the raw file URL mask for that), we still try to do
git ls-remote on it.

With this change, if the user added credentials to the admin UI, we'll now
patch those credentials into the URL passed into ls-remote.

Ran unit tests.

Description From Last Updated

Col: 13 W503 line break before binary operator

reviewbotreviewbot

Col: 13 W503 line break before binary operator

reviewbotreviewbot

local variable 'result' is assigned to but never used

reviewbotreviewbot

Any chance this can be a blank string? Should we just check truthiness?

chipx86chipx86

Blank line between these.

chipx86chipx86

And these.

chipx86chipx86

""" on the next line.

chipx86chipx86

Remove newline.

brenniebrennie
reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/scmtools/tests.py
        reviewboard/scmtools/git.py
    
    
  2. reviewboard/scmtools/git.py (Diff revision 1)
     
     
    Show all issues
    Col: 13
     W503 line break before binary operator
    
  3. reviewboard/scmtools/git.py (Diff revision 1)
     
     
    Show all issues
    Col: 13
     W503 line break before binary operator
    
  4. 
      
david
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/scmtools/tests.py
        reviewboard/scmtools/git.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/scmtools/tests.py
        reviewboard/scmtools/git.py
    
    
  2. reviewboard/scmtools/tests.py (Diff revision 2)
     
     
    Show all issues
     local variable 'result' is assigned to but never used
    
  3. 
      
david
reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/scmtools/tests.py
        reviewboard/scmtools/git.py
    
    
  2. 
      
chipx86
  1. 
      
  2. reviewboard/scmtools/git.py (Diff revision 3)
     
     
    Show all issues

    Any chance this can be a blank string? Should we just check truthiness?

  3. reviewboard/scmtools/git.py (Diff revision 3)
     
     
     
    Show all issues

    Blank line between these.

  4. reviewboard/scmtools/git.py (Diff revision 3)
     
     
     
    Show all issues

    And these.

  5. reviewboard/scmtools/tests.py (Diff revision 3)
     
     
    Show all issues

    """ on the next line.

  6. 
      
david
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/scmtools/tests.py
        reviewboard/scmtools/git.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/scmtools/tests.py
        reviewboard/scmtools/git.py
    
    
  2. 
      
brennie
  1. 
      
  2. reviewboard/scmtools/git.py (Diff revision 4)
     
     
    Show all issues

    Remove newline.

  3. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-2.0.x (d276d2f)