Page MenuHomeNicheWork Phabricator

MABS: push to recent clone should probably never say most recent remote ref was 0
Open, LowPublic

Description

See this comment. It is possible that last remote ref is 0 when there is only a single commit, but that needs to be verified.

Event Timeline

hexmode created this task.Aug 8 2019, 11:13 AM
hexmode triaged this task as Normal priority.
hexmode added a comment.EditedAug 8 2019, 4:24 PM

Verified that "last remote revision found is 0" on a fresh clone

$ rm -rf repo; git clone mediawiki::http://moon.localdomain repo; cd repo; git pull
Cloning into 'repo'...
Searching revisions...
No previous mediawiki revision found.
... fetching from beginning.
Fetching & writing export data by revs...
Listing pages on remote wiki...
1 pages found.
1/2: Revision #1 of Main_Page
2/2: Revision #2 of Main_Page
Searching revisions...
No previous mediawiki revision found.
... fetching from beginning.
Fetching & writing export data by revs...
1/2: Revision #1 of Main_Page
2/2: Revision #2 of Main_Page
Searching revisions...
Last local mediawiki revision found is 2.
... fetching from here.
Fetching & writing export data by revs...
Listing pages on remote wiki...
1 pages found.
Already up to date.

$ git push
Last local mediawiki revision found is 2.
Getting last revision id on tracked pages...
Listing pages on remote wiki...
1 pages found.
Last remote revision found is 0.
Computing path from local to remote ...
Cannot find a path in history from remote commit to last commit

To mediawiki::http://moon.localdomain
 * [new branch]      master -> master
hexmode added a comment.EditedAug 8 2019, 4:26 PM

So, it looks like it isn't storing the note for the remote repo. See Git-notes.

This is apparently an issue that comes from not maintaining the remote pages separately from the local pages.

hexmode shifted this object from the Restricted Space space to the S3 Public NicheWork space.Sep 16 2019, 9:38 AM
hexmode changed the visibility from "All Users" to "Public (No Login Required)".
hexmode lowered the priority of this task from Normal to Low.Sep 16 2019, 9:57 AM