Giter Club home page Giter Club logo

Comments (9)

technoweenie avatar technoweenie commented on July 28, 2024

This happens every time you edit a page? What are the contents of the tree?

from grit.

jondot avatar jondot commented on July 28, 2024

yes. this is the flow to reproduce:
gem install gollum
cd wiki
git init .
gollum
-> hit localhost:4567
-> create a new page
-> edit the same page & save
i get redirected to the 'create page' page for the same page item. at this stage the tree is already corrupt.

i mention again that this all happens in Windows based environments (the ones mentioned above, not same machines necessarily).

from grit.

technoweenie avatar technoweenie commented on July 28, 2024

Well, you may have to fix the bug on your end then. What are the contents of the tree?

git cat-file -p TREE_SHA

from grit.

jondot avatar jondot commented on July 28, 2024

C:\wiki>git cat-file -p f1f4bc2c8a9f31928c22e242890094c0e7e50a07
tree c1e3cc319766933e694784f16cdb2207dbe3d543
parent f7ca910c838fbe39764ba5894fb832295cd54dd2
author jondot [email protected] 1293806444 -0700
committer jondot [email protected] 1293806444 -0700

from grit.

technoweenie avatar technoweenie commented on July 28, 2024

That's a commit. Run that on the tree sha.

from grit.

jondot avatar jondot commented on July 28, 2024

C:\wiki>git cat-file -p c1e3cc319766933e694784f16cdb2207dbe3d543
040000 tree fd22caff3eb4f3acb0dac3d5600b8d609cc956cf :
100644 blob c69338169bf60650209c2dc610a0013f43d81f10 Home.md

um, is it possible that it committed ':' because of the way the path looks? (c:) and its not really legal in windows?

from grit.

technoweenie avatar technoweenie commented on July 28, 2024

Possibly. That looks like a bug in Grit::Index

from grit.

jondot avatar jondot commented on July 28, 2024

sorry, feels like a bug in gollum.. i'll track it down, thanks

from grit.

jondot avatar jondot commented on July 28, 2024

confirmed. normalize_dir in gollum is not win32 safe. sorry for the hassle.

from grit.

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.