| Index: git_common.py
|
| diff --git a/git_common.py b/git_common.py
|
| index c602103308cbfffbb297c4f7a493daf718540c92..720840cc5e2d2e8df3866e5e345d0ca78c2142ac 100644
|
| --- a/git_common.py
|
| +++ b/git_common.py
|
| @@ -405,12 +405,14 @@ def freeze():
|
| limit_mb = get_config_int(key, 100)
|
| untracked_bytes = 0
|
|
|
| + root_path = repo_root()
|
| +
|
| for f, s in status():
|
| if is_unmerged(s):
|
| die("Cannot freeze unmerged changes!")
|
| if limit_mb > 0:
|
| if s.lstat == '?':
|
| - untracked_bytes += os.stat(f).st_size
|
| + untracked_bytes += os.stat(os.path.join(root_path, f)).st_size
|
| if untracked_bytes > limit_mb * MB:
|
| die("""\
|
| You appear to have too much untracked+unignored data in your git
|
|
|