Skip to content

Commit

Permalink
test (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
subhashish-devtron authored Feb 14, 2024
1 parent 7e88791 commit c6b909d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/RepoManages.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,7 @@ func (impl RepoManagerImpl) updatePipelineMaterialCommit(gitCtx git.GitContext,
//commits, err := impl.FetchChanges(pipelineMaterial.Id, "", "", 0)
if err == nil {
impl.logger.Infow("commits found", "commit", commits)
totalCommits, err := git.AppendOldCommitsFromHistory(commits, pipelineMaterial.CommitHistory, fetchCount)
if err != nil {
impl.logger.Errorw("error in appending history to fetched commit", "err", err, "pipelineMaterialId", pipelineMaterial.Id)
}
b, err := json.Marshal(totalCommits)
b, err := json.Marshal(commits)
if err == nil {
pipelineMaterial.CommitHistory = string(b)
if len(commits) > 0 {
Expand Down

0 comments on commit c6b909d

Please sign in to comment.