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

Does not work in subdirectories #56

Open
NobbZ opened this issue Jun 26, 2016 · 13 comments
Open

Does not work in subdirectories #56

NobbZ opened this issue Jun 26, 2016 · 13 comments

Comments

@NobbZ
Copy link

NobbZ commented Jun 26, 2016

given the following folderstructure

+ project
  + .git
  + subfolder

I can run git fame only in project while I do get Error: Branch 'master' does not exist. in any subfolder. It worked pretty well with 1.7.3 where I got a fame-table of the corresponding subfolder exclusively.

@oleander
Copy link
Owner

In the latest version you need to specify the git directory if you aren't in the same location as the .git folder. I'm not sure why I designed it this way, but I remember I had a good reason for it :) You can set the path manually using --repository="../my/path.

@rsharmachamp1
Copy link

rsharmachamp1 commented Nov 24, 2016

@oleander I am still getting the "Error: Branch 'master' does not exist." even after giving the below
git fame --branch=master --repository="."

git-fame 2.5.1 (c) 2012-2016 Linus Oleander
Am running on gitBash on windows, gem version 2.5.1

@oleander
Copy link
Owner

@rsharmachamp1 Sorry about that, lets see if we can fix it. Is the .git folder located in . as you specified?

@rsharmachamp1
Copy link

yes, its there, and I tried in master as well as other branches too. for all branches it says "<branch_name> does not exist"

@oleander
Copy link
Owner

What does git branch yield? Also, could you try to specify the output of git rev-parse --show-toplevel as the directory to --repository=? So if it yields /a/b/c try running git fame --repository="/a/b/c".

@rsharmachamp1
Copy link

$ git branch

  • develop
    master
    milestone_m19

Both of the below give same "Error: Branch 'master' does not exist."
git fame --repository="/C/src/git/rahuls_test"
git fame --repository="C:/src/git/rahuls_test"

I am in C:/src/git/rahuls_test while running all commands, .git directory is also located here.

@Petah
Copy link

Petah commented Dec 16, 2016

Same issue here. Running windows.

C:\work\project>git branch
* develop
  feature/coupons
  feature/orders
  feature/transform

C:\work\project>git-fame --branch=develop .
Error: Branch 'develop' does not exist.
Try --help for help.

C:\work\project>git-fame .
Error: Branch 'master' does not exist.
Try --help for help.

@moyulcy
Copy link

moyulcy commented Apr 17, 2017

I run git fame in project's folder ,git bash here show "print(tabulate(auth_stats, stats_tot, args["--sort"]))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 4552-4554: ordinal not in range(128)".

@kazykenov
Copy link

Having the same issue, running in project's folder (where .git is located) displays "Error: Branch 'master' does not exist."

@garethrepton
Copy link

garethrepton commented Sep 13, 2017

Same issue, same scenario, running windows

@korthout
Copy link

Same problem here. Also running windows. Using bash through cmder with git version 2.14.2.windows.1

@kannanbalu
Copy link

Hi, i have exactly the same issue and is blocking my activity on git fame. How do we resolve this? Kindly assist.

@jackdh
Copy link

jackdh commented Mar 8, 2018

I've found a work for windows which is to use Ubuntu Bash windows feature. From there install git_fame and go.

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

No branches or pull requests

10 participants