diff --git a/external_updater.py b/external_updater.py
index 749fb2199ecde97a538a6e2b1ecf5980fa1029b6..5e2e944c0778b50fb917604d896e7bf102b17499 100644
--- a/external_updater.py
+++ b/external_updater.py
@@ -129,7 +129,8 @@ def _process_update_result(path):
 def _check_some(paths, delay):
     results = {}
     for path in paths:
-        results[path] = _process_update_result(path)
+        relative_path = fileutils.get_relative_project_path(path)
+        results[relative_path] = _process_update_result(path)
         time.sleep(delay)
     return results
 
@@ -141,7 +142,8 @@ def _check_all(delay):
         if fileutils.METADATA_FILENAME in files:
             # Skip sub directories.
             dirs[:] = []
-            results[path] = _process_update_result(path)
+            relative_path = fileutils.get_relative_project_path(path)
+            results[relative_path] = _process_update_result(path)
             time.sleep(delay)
     return results
 
@@ -204,7 +206,7 @@ def _do_update(args):
         git_utils.push(full_path, args.remote_name)
 
     if args.branch_and_commit:
-        git_utils.checkout(full_path, 'aosp/master')
+        git_utils.checkout(full_path, args.remote_name + '/master')
 
 
 def parse_args():
diff --git a/notifier.py b/notifier.py
index 4391558de4d2e74b9e6aad276b9f8adcbad294f7..455a5b99f095a3dd8c0909ba864c26dc6e8a663a 100644
--- a/notifier.py
+++ b/notifier.py
@@ -134,7 +134,7 @@ def send_notification(args):
     _process_results(args, history, results)
 
     with open(args.history, 'w') as f:
-        json.dump(history, f, sort_keys=True)
+        json.dump(history, f, sort_keys=True, indent=4)
 
 
 def _upgrade(proj):