Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git pillage when HEAD is not master #10

Open
andresriancho opened this issue Apr 8, 2014 · 0 comments
Open

git pillage when HEAD is not master #10

andresriancho opened this issue Apr 8, 2014 · 0 comments

Comments

@andresriancho
Copy link

I'm trying to pillage a repository where the HEAD is not master, and it's not working.

Here are some obfuscated files, first .git/config

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = git@github-server:raft/raft
[branch "staging"]
    remote = origin
    merge = refs/heads/staging

And then .git/HEAD

ref: refs/heads/staging

The thing is that when running, it won't download the files. For what I've been reading about the source code we need to change read the HEAD:

#2 - get static files
get "HEAD"

And right after parse it, and in the LOCAL repository change the HEAD to match the remote before continuing with the process.

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

No branches or pull requests

1 participant