Giter Club home page Giter Club logo

hooks's People

Contributors

reinhrst avatar

Watchers

 avatar  avatar  avatar

Forkers

lonerooftop

hooks's Issues

Handle typechange right

#reinoud@Gopher ~/work/hooks 08:43:05 > git s
On branch master
Your branch is up-to-date with 'origin/master'.

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

    new file:   .gitmodules
    new file:   cowramfs
    typechange: pre-commit

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   checks/base.py
    modified:   cowramfs (new commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    checks/pep8.py

#reinoud@Gopher ~/work/hooks 08:43:09 > git commit -m "cowramfs"
Traceback (most recent call last):
  File ".git/hooks/pre-commit", line 23, in <module>
    main()
  File ".git/hooks/pre-commit", line 15, in main
    errors = checks.check(CHECKS)
  File "/Users/reinoud/work/hooks/.git/hooks/checks/base.py", line 135, in check
    changedFile = ChangedFile.createForStagedFile(filename)
  File "/Users/reinoud/work/hooks/.git/hooks/checks/base.py", line 30, in createForStagedFile
    filestatus = status.determineStatus(diff[0].split()[4])
  File "/Users/reinoud/work/hooks/.git/hooks/checks/status.py", line 11, in determineStatus
    }[statusflag]
KeyError: 'T'
#reinoud@Gopher ~/work/hooks 08:43:27 > git commit -n -m "cowramfs"
#reinoud@Gopher ~/work/hooks 08:43:36 > git s --porcelain
A  .gitmodules
 M checks/base.py
AM cowramfs
T  pre-commit
?? checks/pep8.py

Minor procedure detail.

In your readme.md, under the installation section, do you mean ".git-templates" or ".git-template"?

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.