Opened on 09/11/2014 at 07:33:27 PM

Closed on 09/18/2014 at 11:39:50 AM

#1366 closed defect (fixed)

ensure_dependencies.py checkout fails for master revision

Reported by: trev Assignee: trev
Priority: P4 Milestone:
Module: Automation Keywords:
Cc: Blocked By:
Blocking: #170, #1369 Platform: Unknown
Ready: yes Confidential: no
Tester: Verified working: no
Review URL(s):

http://codereview.adblockplus.org/6490407919681536

Description

How to reproduce

  1. Make sure that the dependencies file of a Git repository references the master revision of another repository.
  2. Run ensure_dependencies.py.

Observed behaviour

The dependency is cloned but the directory is empty - no checkout happened. This is because git rev-parse HEAD identifies the current revision as the master revision even though nothing was checked out. This is different from Mercurial that will give you revision 000000000000 in that scenario.

Expected behaviour

Checkout happens and the directory contains all the necessary files.

Attachments (0)

Change History (4)

comment:1 Changed on 09/11/2014 at 07:35:05 PM by trev

  • Review URL(s) modified (diff)
  • Status changed from new to reviewing

comment:2 Changed on 09/18/2014 at 11:19:02 AM by matze

  • Blocking 1369 added; 170 removed

comment:3 Changed on 09/18/2014 at 11:19:15 AM by matze

  • Blocking 170 added

comment:4 Changed on 09/18/2014 at 11:39:50 AM by trev

  • Resolution set to fixed
  • Status changed from reviewing to closed

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from trev.
 
Note: See TracTickets for help on using tickets.