You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Upload queue not reset when resetting commit staging #82
I added some files via git add they then show up in git media queues. However if I decide to not commit those files and git reset HEAD ., they remain in git media queues.
renderables/ on master › git add git-media/
renderables/ › git media queues
upload
git-media/psds/100.psd
git-media/psds/1000-2.psd
git-media/psds/300.psd
renderables/ › git reset HEAD .
renderables/ on master › git media queues
upload
git-media/psds/100.psd
git-media/psds/1000-2.psd
git-media/psds/300.psd
renderables/ on master › git st
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
.gitattributes
git-media/
nothing added to commit but untracked files present (use "git add" to track)
You can clear it out manually by deleting .git/media/queues/upload or something like that. We should have a git media reset command, and maybe git media queues clear.
we could perhaps re-verify the content hash, or (more quickly) store some extra file metadata. A reset is pretty likely to change the file and we can dequeue or refuse to sync it. If the reset doesn't change the file somehow and only unstages it, though, that's harder.
Activity
technoweenie commentedon Jun 26, 2014
You can clear it out manually by deleting
.git/media/queues/uploador something like that. We should have agit media resetcommand, and maybegit media queues clear.skalnik commentedon Jun 26, 2014
Makes sense. And based on chat talk, this may be hard to make automatic: chat/1304736005
technoweenie commentedon Jun 26, 2014
Confirmed,
git resetdoesn't runcheckout, and therefore does not triggerpost-checkout.rubyist commentedon Jun 26, 2014
we could perhaps re-verify the content hash, or (more quickly) store some extra file metadata. A reset is pretty likely to change the file and we can dequeue or refuse to sync it. If the reset doesn't change the file somehow and only unstages it, though, that's harder.
rubyist commentedon Jun 26, 2014
Maybe we can also check queued files against currently staged files or something
technoweenie commentedon Jun 26, 2014
@rubyist: I like that idea. We could start by making
git media queuessmarter:rubyist commentedon Oct 2, 2014
The upload queue is 💀, so this should be cool now!