From 69f7c64e6828c5f33bca37bb0aac1a7a2336298c Mon Sep 17 00:00:00 2001 From: Filip Gralinski Date: Sat, 9 Oct 2021 14:40:14 +0200 Subject: [PATCH] Better message when submitting fails --- src/GEval/Submit.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GEval/Submit.hs b/src/GEval/Submit.hs index f04a6b6..faf14e1 100644 --- a/src/GEval/Submit.hs +++ b/src/GEval/Submit.hs @@ -112,7 +112,7 @@ checkRemoteSynced = do return () else failWith "Changes are not merged with remote branch." - Nothing -> failWith "No tracking branch found, use `git push -u origin BRANCH_NAME`" + Nothing -> failWith "No tracking branch found, use `git push -u origin BRANCH_NAME`.\nIf the repo was cloned with ``--single-branch` you might also need to do\n`git config remote.origin.fetch \"+refs/heads/*:refs/remotes/origin/*\"` first. " getCurrentBranch :: IO String getCurrentBranch = runCommand "git rev-parse --abbrev-ref HEAD"