thoth-station / kebechet

I'm Kebechet bot, goddess of freshness - I will keep your source code fresh and up-to-date
24 stars 20 forks source link

Use git add command instead of index.add from gitpython #1176

Closed harshad16 closed 1 year ago

harshad16 commented 1 year ago

Use git add command instead of index.add from gitpython Signed-off-by: Harshad Reddy Nalla hnalla@redhat.com

Related Issues and Dependencies

fixes: #1174

This Pull Request implements

We are using git command method for add instead of index.add as suggested here: https://github.com/gitpython-developers/GitPython/issues/292

Description

With the method repo.index.add(files) somehow that particular bit was include . files as well which was causing in commits.

stderr: 'remote: error: object <xxx>: hasDot: contains '.'        
remote: fatal: fsck error in packed object        
error: remote unpack failed: index-pack abnormal exit
KPostOffice commented 1 year ago

/approve

sesheta commented 1 year ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: KPostOffice

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/thoth-station/kebechet/blob/master/OWNERS)~~ [KPostOffice] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
harshad16 commented 1 year ago

Merging this to get a new release.