Gitk shell fix

use the top media buffer when doing git media clear