Show More
@@ -83,7 +83,8 class GitInMemoryChangeset(BaseInMemoryC | |||||
83 | curtree = newtree |
|
83 | curtree = newtree | |
84 | parent[reversed_dirnames[-1]] = DIRMOD, curtree.id |
|
84 | parent[reversed_dirnames[-1]] = DIRMOD, curtree.id | |
85 | else: |
|
85 | else: | |
86 |
parent.add(node.mode, |
|
86 | parent.add(name=node_path, mode=node.mode, hexsha=blob.id) | |
|
87 | ||||
87 | new_trees.append(parent) |
|
88 | new_trees.append(parent) | |
88 | # Update ancestors |
|
89 | # Update ancestors | |
89 | for parent, tree, path in reversed([(a[1], b[1], b[0]) for a, b in |
|
90 | for parent, tree, path in reversed([(a[1], b[1], b[0]) for a, b in | |
@@ -123,7 +124,7 class GitInMemoryChangeset(BaseInMemoryC | |||||
123 | commit.parents = [p._commit.id for p in self.parents if p] |
|
124 | commit.parents = [p._commit.id for p in self.parents if p] | |
124 | commit.author = commit.committer = safe_str(author) |
|
125 | commit.author = commit.committer = safe_str(author) | |
125 | commit.encoding = ENCODING |
|
126 | commit.encoding = ENCODING | |
126 |
commit.message = safe_str(message) |
|
127 | commit.message = safe_str(message) | |
127 |
|
128 | |||
128 | # Compute date |
|
129 | # Compute date | |
129 | if date is None: |
|
130 | if date is None: |
General Comments 0
You need to be logged in to leave comments.
Login now