133
137
from posix import stat_result
134
138
stat_val = stat_result((stat.S_IFLNK, 0, 0, 0, 0, 0, 0, 0, 0, 0))
135
139
blob.set_raw_string(entry.symlink_target)
136
142
# Add object to the repository if it didn't exist yet
137
143
if not blob.id in self.repository._git.object_store:
138
144
self.repository._git.object_store.add_object(blob)