Skip to content

Correct splitting of git-ls-tree output#38

Closed
dspinellis wants to merge 1 commit into
hoxu:masterfrom
dspinellis:master
Closed

Correct splitting of git-ls-tree output#38
dspinellis wants to merge 1 commit into
hoxu:masterfrom
dspinellis:master

Conversation

@dspinellis

Copy link
Copy Markdown
Contributor

Split limit 5 was off by one, which resulted in incorrect
processing of file paths with spaces embedded in them.
New split limit of 4 gets the required parts, because it
specifies the allowed number of splits, not elements:

mode type hash size name
1 2 3 4

Split limit 5 was off by one, which resulted in incorrect
processing of file paths with spaces embedded in them.
New split limit of 4 gets the required parts, because it
specifies the allowed number of splits, not elements:

mode type hash size name
    1    2    3    4
@hoxu

hoxu commented Nov 7, 2014

Copy link
Copy Markdown
Owner

Nice catch - accepted & pushed out as eb812a4. Thanks!

@hoxu hoxu closed this Nov 7, 2014
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

Successfully merging this pull request may close these issues.

2 participants