Git Product home page Git Product logo

Comments (11)

casperdcl avatar casperdcl commented on August 23, 2024

Interesting. What about just git fame or git fame .?

from git-fame.

NicolasDepoilly avatar NicolasDepoilly commented on August 23, 2024

When I do this, the soft seems to be a bit lost and tries to find something in /var/lib :

nicolas@nicolas-XXXXXX:/var/www/mobile$ git fame
fatal: not a git repository (or any parent up to mount point /var/lib)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Processing: 100%|###################################################################################| 1/1 [00:00<00:00, 321.92file/s]
BUG: environment.c:183: git environment hasn't been setup
Total 
| Author   | loc   | coms   | fils   |  distribution   |
|----------|-------|--------|--------|-----------------|
nicolas@nicolas-XXXXXX:/var/www/mobile$ git fame .
fatal: not a git repository (or any parent up to mount point /var/lib)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Processing: 100%|###################################################################################| 1/1 [00:00<00:00, 453.68file/s]
BUG: environment.c:183: git environment hasn't been setup
Total 
| Author   | loc   | coms   | fils   |  distribution   |
|----------|-------|--------|--------|-----------------|
nicolas@nicolas-XXXXXX:/var/www/mobile$ 

from git-fame.

casperdcl avatar casperdcl commented on August 23, 2024

ah I think this is an issue with the snap installation not working on mounted directories.

You can try installing using pip instead...

snap remove git-fame
python -m pip install git-fame

from git-fame.

NicolasDepoilly avatar NicolasDepoilly commented on August 23, 2024

I tried but it is not finding anywhere git-fame and not installing it ( but requirments seems ok). At first I tried installing it through pip but it wasnt doing anything so I moved to snap.

nicolas@nicolas-XXXXX:/var/www/mobile$ snap remove git-fame
git-fame removed
nicolas@nicolas-XXXXX:/var/www/mobile$ python -m pip install git-fame

Command 'python' not found, did you mean:

  command 'python3' from deb python3
  command 'python' from deb python-is-python3


nicolas@nicolas-XXXXX:/var/www/mobile$ python3 -m pip install git-fame
Requirement already satisfied: git-fame in /home/nicolas/.local/lib/python3.8/site-packages (1.15.0)
Requirement already satisfied: argopt>=0.3.5 in /home/nicolas/.local/lib/python3.8/site-packages (from git-fame) (0.7.0)
Requirement already satisfied: tabulate in /home/nicolas/.local/lib/python3.8/site-packages (from git-fame) (0.8.9)
Requirement already satisfied: tqdm>=4.44.0 in /home/nicolas/.local/lib/python3.8/site-packages (from git-fame) (4.62.3)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from git-fame) (45.2.0)
nicolas@nicolas-XXXXX:/var/www/mobile$ git-fame
bash: /snap/bin/git-fame: No such file or directory
nicolas@nicolas-UX530UX:/var/www/mobile$ git fame
expansion of alias 'fame' failed; 'python3' is not a git command

from git-fame.

NicolasDepoilly avatar NicolasDepoilly commented on August 23, 2024

I re did this fyi to set up properly the alias, but it seems to trigger issues with git and python3 :

nicolas@nicolas-XXXX:/var/www/mobile$ git config --global alias.fame "!python -m gitfame"
git config --global alias.fame "python3  -m pip install git-fame -m gitfame"
nicolas@nicolas-XXXX:/var/www/mobile$ git fame
expansion of alias 'fame' failed; 'python3' is not a git command

from git-fame.

casperdcl avatar casperdcl commented on August 23, 2024

the alias shouldn't be required on Linux. You just needed to restart your terminal after python3 -m pip install git-fame

You can undo the alias stuff with git config --global --unset alias.fame

from git-fame.

NicolasDepoilly avatar NicolasDepoilly commented on August 23, 2024

I closed and re opened my terminal window, and I still have this :

nicolas@nicolas-XXXX:/var/www/bo-g4l$ git fame
git: 'fame' is not a git command. See 'git --help'.

The most similar command is
	blame
nicolas@nicolas-XXXX:/var/www/bo-g4l$ cd /var/www/mobile
nicolas@nicolas-XXXX:/var/www/mobile$ git fame
git: 'fame' is not a git command. See 'git --help'.

The most similar command is
	blame
nicolas@nicolas-XXXX:/var/www/mobile$ python3 -m pip install git-fame
Requirement already satisfied: git-fame in /home/nicolas/.local/lib/python3.8/site-packages (1.15.0)
Requirement already satisfied: argopt>=0.3.5 in /home/nicolas/.local/lib/python3.8/site-packages (from git-fame) (0.7.0)
Requirement already satisfied: tabulate in /home/nicolas/.local/lib/python3.8/site-packages (from git-fame) (0.8.9)
Requirement already satisfied: tqdm>=4.44.0 in /home/nicolas/.local/lib/python3.8/site-packages (from git-fame) (4.62.3)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from git-fame) (45.2.0)
nicolas@nicolas-XXXX:/var/www/mobile$ git config --global alias.fame "python3  -m pip install git-fame -m gitfame"
nicolas@nicolas-XXXX:/var/www/mobile$ git fame
expansion of alias 'fame' failed; 'python3' is not a git command

If I must reboot my machine, it will be a bit complex at moment with all the stuff I have opened ( and I restart my machine every trimester :) )

from git-fame.

casperdcl avatar casperdcl commented on August 23, 2024

reboot definitely not required. Reopening the terminal should've been enough but seems like your git version doesn't like it.

  • windows: git config --global alias.fame "!python3 -m gitfame"
  • linux: git config --global alias.fame '!python3 -m gitfame'

should fix it.

from git-fame.

NicolasDepoilly avatar NicolasDepoilly commented on August 23, 2024

I tried distinct typos but nothing seems to pas through :

nicolas@nicolas-XXXX:/var/www/mobile$ git config --global alias.fame "!python3 -m gitfame"
git config --global alias.fame "python3 -m pip install git-fame -m gitfame"
nicolas@nicolas-XXXX:/var/www/mobile$ gitfame

Command 'gitfame' not found, did you mean:

  command 'git-fame' from snap git-fame (1.15.0)

See 'snap info <snapname>' for additional versions.

nicolas@nicolas-XXXX:/var/www/mobile$ git-fame

Command 'git-fame' not found, but can be installed with:

sudo snap install git-fame

nicolas@nicolas-XXXX:/var/www/mobile$ git fame
expansion of alias 'fame' failed; 'python3' is not a git command

from git-fame.

casperdcl avatar casperdcl commented on August 23, 2024

Ah srry, was giving you the Windows version. The quotes have to be single:

git config --global alias.fame '!python3 -m gitfame'

from git-fame.

NicolasDepoilly avatar NicolasDepoilly commented on August 23, 2024

Its all good now!
Thanks
I think you can update your doc for alias of those geeks on linux :)
Many thanks
Nicolas

from git-fame.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.