__git: impossible to update after first-use #47
Labels
No labels
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ungleich-public/cdist#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expectation:
after using something like
__git stuff --branch productionfor the first time, I'd expect subsequent runs of a manifest with that to keep thestuffrepository up to date with the remoteproductionbranch.Actual behaviour:
a fetch of the repository never happens if the repository is already cloned.
Proposal:
I can think of two options:
__git/explorer/needs-updateexplorer that: if the repository is already cloned, does agit fetchand compares the current HEAD with the remote HEAD, then echoesYESif they differ andNOif they are equal. Afterwards ingencode-remotewe wouldgit pullif and only if necessary.gencode-remotethat does the fetching and comparing (wouldn't be necessary on first run).Thoughts?
As with #818, I am currently working with
__gitso it'd be relatively low effort to fix this.mentioned in merge request !894
assigned to @evilham