Bug 650434 - fedpkg clone -B fails on RHEL 5 because git clone does not support --branch option
Summary: fedpkg clone -B fails on RHEL 5 because git clone does not support --branch o...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: fedora-packager
Version: el5
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-06 12:20 UTC by Richard W.M. Jones
Modified: 2013-01-10 06:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-23 22:34:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2010-11-06 12:20:28 UTC
Description of problem:

(Sorry, this bug is against Fedora because I couldn't work
out how to file it against EPEL).

In RHEL 5 + EPEL, fedpkg clone -B fails like this:

$ fedpkg clone -B po4a
Initialized empty Git repository in /home/rjones/d/fedora/po4a/fedpkg.git/
remote: Counting objects: 207, done.
remote: Compressing objects: 100% (96/96), done.
remote: Total 207 (delta 95), reused 200 (delta 94)
Receiving objects: 100% (207/207), 21.93 KiB, done.
Resolving deltas: 100% (95/95), done.
Could not clone: Could not locally clone el4/master from /home/rjones/d/fedora/po4a/fedpkg.git: 'git clone --branch el4/master /home/rjones/d/fedora/po4a/fedpkg.git el4' returned exit status 129: error: unknown option `branch'
usage: git-clone [options] [--] <repo> [<dir>]

    -n, --no-checkout     don't create a checkout
    --bare                create a bare repository
    --naked               create a bare repository
    -l, --local           to clone from a local repository
    --no-hardlinks        don't use local hardlinks, always copy
    -s, --shared          setup as a shared repository
    --template ...        path to the template directory
    -q, --quiet           be quiet
    --reference ...       reference repository
    -o, --origin ...      use <name> instead of 'origin' to track upstream
    -u, --upload-pack ...
                          path to git-upload-pack on the remote
    --depth ...           create a shallow clone of that depth
    --use-separate-remote
                          compatibility, do not use
    --no-separate-remote  compatibility, do not use


Version-Release number of selected component (if applicable):

fedora-packager-0.5.1.4-1.el5

How reproducible:

Always if the -B option is used.

Works OK if you don't use -B.

Steps to Reproduce:
1. As above.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Jesse Keating 2010-12-01 00:34:35 UTC
ugh, I think the "easiest" solution here is to just not have a -B option in our el5 version of fedpkg.  I wasn't expecting a lot of people to be using this version anyway.

Comment 2 Jesse Keating 2011-05-23 22:34:16 UTC
This problem kinda went away, as git was upgraded to 1.7 on el5.


Note You need to log in before you can comment on or make changes to this bug.