const url = `${window.gitlist.basepath}/${window.gitlist.repo}/git-helper/${window.gitlist.branch}/fetch-origin`
try {
const request = $.ajax({
url: url,
type: 'POST',
})
const response = await request;
const json = JSON.parse(response)
if (json.error === true) {
window.gitlist.ajaxErrorHandler(json);
return;
}
$.snackbar({
htmlAllowed: true,
content: json.message,
})