New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 620814 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Long OOO (go/where-is-mgiuca)
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

depot_tools: GitReadOnlyFunctionsTest.testBlame fails if gitconfig has core.abbrev set

Project Member Reported by vapier@chromium.org, Jun 16 2016

Issue description

i have core.abbrev set to 12 in my ~/.gitconfig and this breaks the unittest.  i tried tweaking depot_tools/.git/config but that didn't help.

tests/git_common_test.py (5.91s) failed
................F..............uCannot foo with a dirty tree. You must commit locally first.
Uncommitted files: (git diff-index --name-status HEAD)
A       test.file
/tmp/git_repo0S6T_tbase/tmpcvroGf
.......
======================================================================
FAIL: testBlame (__main__.GitReadOnlyFunctionsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/git_common_test.py", line 297, in testBlame
    'tag_D').split('\n'))
AssertionError: Lists differ: ['435b19bc (Author McAuthorly ... != ['435b19bc9ddc6 (Author McAuth...

First differing element 0:
435b19bc (Author McAuthorly 1970-01-05 00:00:00 +0000 1) file2 - vanilla
435b19bc9ddc6 (Author McAuthorly 1970-01-05 00:00:00 +0000 1) file2 - vanilla

- ['435b19bc (Author McAuthorly 1970-01-05 00:00:00 +0000 1) file2 - vanilla',
+ ['435b19bc9ddc6 (Author McAuthorly 1970-01-05 00:00:00 +0000 1) file2 - vanilla',
?           +++++

-  '33abbc0a (Author McAuthorly 1970-01-07 00:00:00 +0000 2) file2 - merged']
+  '33abbc0a63319 (Author McAuthorly 1970-01-07 00:00:00 +0000 2) file2 - merged']
?           +++++


----------------------------------------------------------------------
Ran 39 tests in 5.756s

FAILED (failures=1, unexpected successes=1)
 

Comment 1 by benhenry@google.com, Jun 21 2016

Status: Assigned (was: Unconfirmed)
There's an owner on this bug but the status != Assigned. Fixing. If you feel you don't own this bug, please remove yourself as the owner and mark it as "Available" or "Untriaged".

Sign in to add a comment