Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

install: Fails with git < 1.7.10 #16

Closed
ssreekanth opened this issue May 3, 2016 · 4 comments
Closed

install: Fails with git < 1.7.10 #16

ssreekanth opened this issue May 3, 2016 · 4 comments
Assignees
Labels

Comments

@ssreekanth
Copy link

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
==> This script will install:
/home/testuser/.linuxbrew/bin/brew
/home/testuser/.linuxbrew/Library/...
/home/testuser/.linuxbrew/share/doc/homebrew
/home/testuser/.linuxbrew/share/man/man1/brew.1
/home/testuser/.linuxbrew/share/zsh/site-functions/_brew
/home/testuser/.linuxbrew/etc/bash_completion.d/brew
/home/testuser/.cache/Homebrew/

Press RETURN to continue or any other key to abort
==> Downloading and installing Linuxbrew...
error: could not lock config file /home/testuser/.linuxbrew/.git/config: No such file or directory
==> Tapping homebrew/core
error: unknown option `config'
usage: git clone [options] [--] <repo> [<dir>]

    -v, --verbose         be more verbose
    -q, --quiet           be more quiet
    --progress            force progress reporting
    -n, --no-checkout     don't create a checkout
    --bare                create a bare repository
    --mirror              create a mirror repository (implies bare)
    -l, --local           to clone from a local repository
    --no-hardlinks        don't use local hardlinks, always copy
    -s, --shared          setup as shared repository
    --recursive           initialize submodules in the clone
    --template <path>     path the template repository
    --reference <repo>    reference repository
    -o, --origin <branch>
                          use <branch> instead of 'origin' to track upstream
    -b, --branch <branch>
                          checkout <branch> instead of the remote's HEAD
    -u, --upload-pack <path>
                          path to git-upload-pack on the remote
    --depth <depth>       create a shallow clone of that depth

Error: Failure while executing: git clone https://github.com/Linuxbrew/homebrew-core /home/testuser/.linuxbrew/Library/Taps/homebrew/homebrew-core --config core.autocrlf=false --depth=1
Failed during: /home/testuser/.linuxbrew/bin/brew tap homebrew/core
$ cat /etc/redhat-release
CentOS release 6.5 (Final)
$ git --version
git version 1.7.1

git clone doesn't seem to have --config option in version 1.7.1

I was wondering if I can't install linuxbrew on older centos 6.5, how can i install newer packages on older distribution.

FYI, I can't upgrade git on this server, as I do not have permissions to do so.

Highly appreciate it, If you could fix the linuxbrew install script to handle it. 👍

@sjackman sjackman changed the title can't install linuxbrew on CentOS 6.5 install: Fails with git < 1.7.10 May 3, 2016
@sjackman sjackman added the bug label May 3, 2016
@DoomHammer
Copy link
Contributor

Probably a wontfix as in Linuxbrew/legacy-linuxbrew#1071 . I am working on a workaround for this. This is a plain CentOS 6.5, right? I will test my WA there.

@ssreekanth
Copy link
Author

Yes it's a plain CentOS 6.5 with git already installed.

@sjackman
Copy link
Member

sjackman commented May 7, 2016

We definitely want the Linuxbrew installer to work with older Git, particularly for CentOS 6, which is quite popular. It needs to work just long enough to bootstrap the system and brew install git.

@sjackman sjackman self-assigned this May 8, 2016
@sjackman
Copy link
Member

sjackman commented May 8, 2016

Fixed!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants