1. 18 Mar, 2016 2 commits
  2. 17 Mar, 2016 2 commits
  3. 16 Mar, 2016 3 commits
  4. 15 Mar, 2016 3 commits
  5. 14 Mar, 2016 2 commits
  6. 12 Mar, 2016 4 commits
  7. 11 Mar, 2016 1 commit
  8. 10 Mar, 2016 2 commits
  9. 09 Mar, 2016 5 commits
  10. 08 Mar, 2016 5 commits
  11. 04 Mar, 2016 10 commits
  12. 03 Mar, 2016 1 commit
    • ppi@chromium.org's avatar
      Fix `git cl format` for dart code. · 6593d933
      ppi@chromium.org authored
      The part that runs dartfmt was relying on the part that runs (or not)
      Clang to set the |env| local variable, which no longer happens after
      https://codereview.chromium.org/1734863002, making `git cl format` fail
      with:
      
      Traceback (most recent call last):
        File "/usr/local/google/home/ppi/projects/depot_tools/git_cl.py", line 3957, in <module>
          sys.exit(main(sys.argv[1:]))
        File "/usr/local/google/home/ppi/projects/depot_tools/git_cl.py", line 3939, in main
          return dispatcher.execute(OptionParser(), argv)
        File "/usr/local/work/depot_tools/subcommand.py", line 252, in execute
          return command(parser, args[1:])
        File "/usr/local/google/home/ppi/projects/depot_tools/git_cl.py", line 3837, in CMDformat
          stdout = RunCommand(command, cwd=top_dir, env=env)
      UnboundLocalError: local variable 'env' referenced before assignment
      
      It seems that we don't need to override env for dartfm anyway - the
      clang part is doing this to put clang_format_tool in PATH.
      
      This patch just drops env= from RunCommand for dartfmt.
      
      Review URL: https://codereview.chromium.org/1760873002
      
      git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299072 0039d316-1c4b-4281-b951-d872f2087c98
      6593d933